试题详情
- 单项选择题 34. HashMap props = new HashMap(); 35. props.put(”key45”, “some value”); 36. props.put(”key12”, “some other value”); 37. props.put(”key39”, “yet another value”); 38. Set s = props.keySet(); 39. // insert code here What, inserted at line 39, will sort the keys in the props HashMap?()
A、 Arrays.sort(s);
B、 s = new TreeSet(s);
C、 Collections.sort(s);
D、 s = new SortedSet(s);
- B
关注下方微信公众号,在线模考后查看
热门试题
- Given an
- 类Student代码如下:D&ensp
- 线程由以下哪些部分组成?()
- 10. class&ensp
- 用JBuilder建立图形界面程序的步骤
- Given an
- 以下函数中,不是Object类所有的是(
- 下述说法中抽象类与接口的区别正确的有哪些
- int x =&e
- Click the
- 如何定义继承关系?为“学生”类派生出“小
- Which three&ens
- javax.swing.JPopMenu
- Java语言中表达式10/3的结果是哪项
- 如何创建一个表格包型布局管理器的约束对象
- Which statemen
- When creating&
- 10. publicQ
- 11. class&ensp
- 求在1,2,3,...,100中,任选两