标签:list asList -- size str obj out ring 静态方法
Collection coll = new ArrayList();
coll.add(133);
coll.add(53);
Object[] array = coll.toArray();
List<String> list = Arrays.asList(new String[]{"as","wa"});
List list1 = Arrays.asList(new int[]{12,123});
System.out.println(list1.size()); //返回值为1
List list2 = Arrays.asList(new Integer[]{12,123});
System.out.println(list2.size()); //返回值为2
标签:list asList -- size str obj out ring 静态方法
原文地址:https://www.cnblogs.com/52yu/p/13621800.html