The Sun has provided the TreeSet
and the TreeMap
and but no TreeList. They provided a utility Collections.sort()
to sort the List. When they provided the Sorted Map and Set, what is the reason they didn't provide the Sorted List.?
Is there any specific reason behind it.?
I am preparing for SCJP, so while going through the Generics
and Collections
, I got this doubt. can anyone clarify.