Darren Houle wrote:
> I actually tried using a vector as you suggest just a while ago and it works the way
>I need. I cannot use just a vector as my data is too complex for a single
>dimensional storage object, I'm using a master hashtable that has names as keys and
>sub-hashtables as values, the sub-hashtables have attributes as keys and vectors as
>values, the vectors are lists of values that go with each attribute. I needed a way
>to pull out the top level last_name keys in alpha order and using a vector in
>parallel with the master hashtable seems to work fine.
One way to do that is to retrieve your HASH.keys() and sort them into a vector that
you use as "map" for getting the values in right order.
I don't use 1.2 as for now, but I think there is a class/interface called SortedMap
that may help you.
/with regards Magnus
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html