34.HashMapprops=newHashMap();35.props.put(”key45”,somevalue”);36.props.put(”key12”,someothervalue”);37.props.put(”key39”,yetanothervalue”);38.Sets=props.keySet();39.//insertcodehereWhat,insertedatline39,willsortthekeysinthepropsHashMap?()

A.Arrays.sort(s); B.s=newTreeSet(s); C.Collections.sort(s); D.s=newSortedSet(s);

时间:2023-08-25 18:48:35

相似题目