[ajug-members] Help again
Brian Lee
brian_a_lee at hotmail.com
Wed Jul 14 22:48:41 EDT 2004
Use TreeMap. It will sort your Map by the natural order. You may need to
write a Comparator if you want something other than normal String
alphabetization. You can use the TreeMap(Map map) constructor to create a
new TreeMap.
BAL
>From: "Barnes, Michael D" <Michael.Barnes at bellsouth.com>
>To: <ajug-members at ajug.org>
>Subject: [ajug-members] Help again
>Date: Wed, 14 Jul 2004 19:23:41 -0500
>
>I need to be able to sort a hashmap when I iterate through the data.
>
>What is the best way to do this?
>
>
>Thanks
>Mike Barnes
>
>The information transmitted is intended only for the person or entity to
>which it is addressed and may contain confidential, proprietary, and/or
>privileged material. Any review, retransmission, dissemination or other use
>of, or taking of any action in reliance upon this information by persons or
>entities other than the intended recipient is prohibited. If you received
>this in error, please contact the sender and delete the material from all
>computers. 117
>
>
>_______________________________________________
>ajug-members mailing list
>ajug-members at ajug.org
>http://www.ajug.org/mailman/listinfo/ajug-members
More information about the ajug-members
mailing list