问题:
Given:
int[] myArray=newint[] {1, 2,3,4, 5};
What allows you to create a list from this array?()
A . List myList = myArray.asList();
B . List myList = Arrays.asList(myArray);
C . List myList = new ArrayList(myArray);
D . List myList = Collections.fromArray(myArray);
Given:
int[] myArray=newint[] {1, 2,3,4, 5};
What allows you to create a list from this array?()
● 参考解析
本题暂无解析