Jakarta Commons Collection's SequencedHashMap would be my choice of use.
TreeMap has irritating issues with equal objects.

Hen

On Tue, 1 Oct 2002, Shawn Bayern wrote:

> On Tue, 1 Oct 2002, Holly, Michael wrote:
>
> > Is there not a method of sorting these to the way they were entered?
>
> HashMap does not guarantee any order.  You can use TreeMap for lexical
> ordering (or LinkedHashMap in JDK 1.4 for order preservation).
>
> --
> Shawn Bayern
> "JSTL in Action"   http://www.jstlbook.com
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to