单项选择题

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);

相关考题