20170104 Problem Resolution Please click on the "java daily" 20170105 "view (problem Resolution in public, public number id:weknow619) below Today's question.
packageJan2017; Importjava.util.ArrayList; Importjava.util.List; public classQues0105 { public Static voidmain (string[] Args) {List<String> list =NewArraylist<string>(); List.add (A); //use the constructor to create a list that contains lists List1List<string> List1 =NewArraylist<string>(list); //use sublist to generate the same list List2list<string> List2 = list.sublist (0, List.size ()); List2.add ("b"); System.out.println (list.equals (list1)); System.out.println (list.equals (list2)); } }
Today's question:
What is the output of the main program? (click on the "java daily question" 20170105 "to View the 20170104 problem Resolution)
Title Originally published in the public number, pinterest: "java daily problem" 20170105, "java daily" 20170105 (can also scan the avatar QR code view)
Weknow team has opened the certification of the sub-answer, there are problems can also be consulted, click on the sub-answer can find me!!
"java Daily question" 20170105