1 public static void main(String[] args) { 2 List Listlist1 = new ArrayList();//報(bào)錯(cuò) 3 4 /*Listlist1.add(0); 5 List Listlist2 = Listlist1; 6 7 System.out.println(Listlist1.get(0) instanceof Integer); 8 System.out.println(Listlist2.get(0) instanceof Integer); 9 */10 }
List 和 ArrayList
12345678_0001
2018-07-22 10:22:57