• 2022-06-09
    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);