单项选择题
Java中,Collection中保留两个集合中交集元素的方法是()
A.addAll()
B.removeAll()
C.retainAll()
D.containsAll()
点击查看答案&解析
相关考题
-
单项选择题
向Collection中增加数据的方法是()。
A.insert
B.add
C.append
D.concat -
单项选择题
返回Collection 中的元素数量的方法是()。
A.length()
B.capacity()
C.size()
D.count() -
单项选择题
下面哪个Set是根据内容排序的?()
A.LinkedHashSet
B.HashSet
C.TreeSet
D.AbstractSet
