--- Charles Burdick <[EMAIL PROTECTED]> wrote:
> --- Daniel Rall <[EMAIL PROTECTED]> wrote:
> > > 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


=====
Lance Lavandowska
Http://www.brainopolis.com/

__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Reply via email to