int[] myArray = new int[] {1,2,3,4,5};
以下哪個(gè)選項(xiàng)可以用一個(gè)數(shù)組創(chuàng)建一個(gè)列表?()
A. List myList = myArray.asList();
B. List myList = Arrays.asList(myArray);
C. List myList = new ArrayList(myArray);
D. List myList = Collections.fromArray(myArray);
您可能感興趣的試卷
你可能感興趣的試題
Which is true?()
A. Line 3 will print the value 2.
B. Line 3 will print the value 3.
C. Compilation will fail because of an error in line 1.
D. Compilation will fail because of an error in line 2.
下面方法返回值是什么?()
A. REDHE
B. edhe
C. EDH
D. edhel
E. redh
F. RED

最新試題
$.ajax中,表示請(qǐng)求時(shí)攜帶的數(shù)據(jù)的是()。
可以在()文件中進(jìn)行前端控制器的配置。
SpringMVC中,使用注解方式時(shí),需要添加()包。
調(diào)用()組件對(duì)已經(jīng)綁定了請(qǐng)求消息數(shù)據(jù)的參數(shù)對(duì)象進(jìn)行數(shù)據(jù)合法性校驗(yàn)。
配置前端控制器時(shí),<url-pattern>/</url-pattern>表示()。