试题详情
单项选择题 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);

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题