Originally posted by Hades Pan:
A ----- is a class that is a collection which cannot contain any
duplicate elements which maintains its elements in ascending order.
SortedSet
Set
Sorted Map
Collection
TreeSet
The Ans is SortedSet Why it is not Sorted Map ???
I think is the
word "elements" not "keys". If it was "keys" there the answer is SortedMap but elements is so it is sortedset.
A Map must have a key and a value. Thus the answer can't be a sorted map.
[This message has been edited by FEI NG (edited November 27, 2001).]