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(my

题目

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

相似考题