[Java daily question] 20170224, java20170133
20170223 for problem resolution, click "Java daily question" 20170224 "below today's question to view the problem (The problem is resolved at the beginning of the public account, public ID: weknow619)
Package Feb2017; import java. util. arrayList; import java. util. list; public class Ques0224 {public static void main (String [] args) {List <Integer> list = new ArrayList <Integer> (); list. add (1); list. add (2); list. add (3); List <Integer> subList = list. subList (0, 2); list. add (4); // add an element System to the original list. out. println ("original list length:" + list. size (); System. out. println ("sub-list length:" + subList. size ());}}
Today's question:
What is the main program running result? (Click "[Java daily question] 20170224" below to view issue resolution 20170223)
Questions originally published on the public account and short book: [Java daily question] 20170224, [Java daily question] 20170224 (you can also scan the Avatar QR code to view)
The weknow team has activated the authentication and has answered questions. If you have any questions, you can also consult. Click the answer to find me !!