>>>>What is SequencedHashtable used for?
>>>
>>>It keeps track of the order in which elements are added to a
>>>Hashtable.

>>TreeMap uses a Red-Black tree to keep the keys of the map in order,
>>either according to their natural order or according to a given
>>Comparator.

>Notice the difference: "the order in which elements are added" versus 
>"according to their natural order".  This means that if I enter the Strings 
>"a", "c", "b" (in that order), they will return: SequencedHashtable: a,c,b 
>TreeMap: a,b,c

Perhaps not as efficiently or cleanly, but couldn't that be handled via a 
custom Comparator on the TreeMap?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to