当前位置:SCJP程序员认证考试题库

问题:

[单选]

1. import java.util.*; 
2. public class Example { 
3. public static void main(String[] args) { 
4. // insert code here 
5. set.add(new integer(2)); 
6. set.add(new integer(l)); 
7. System.out.println(set); 
8. } 
9. } 
Which code, inserted at line 4, guarantees that this program will output [1,2]? ()

A .  Set set = new TreeSet();
B .  Set set = new HashSet();
C .  Set set = new SortedSet();
D .  List set = new SortedList();
E .  Set set = new LinkedHashSet();

健康教育项目目标一般必须回答的问题,简称为()。 3W,3H。 4W,2H。 3W,2H。 4W,3H。 应力对聚合物大分子交联有哪些影响? 简述道德理想、道德原则、道德规范的关系。 运动处方 简述英国学前教育课程概况

1. import java.util.*; 
2. public class Example { 
3. public static void main(String[] args) { 
4. // insert code here 
5. set.add(new integer(2)); 
6. set.add(new integer(l)); 
7. System.out.println(set); 
8. } 
9. } 
Which code, inserted at line 4, guarantees that this program will output [1,2]? ()

参考答案:

  参考解析

本题暂无解析

在线 客服