List[I] list1 = Arrays.asList(1,2,3,4,5);
// list1.add(6); why ..it will cause a runtime error???
书上写的不明白:
it's also possible to use the output of Arrays.asList() directly, as
a List, but the underlying representation in this case in the array, which cannot be resized.
请问,,是怎么变成数组的呢
|