Rendra, Instead of using a hashtable to store your values, use a TreeMap. You can then use the values() method that will return the values in the order of their keys.
-Richard At 04:51 PM 11/12/2001 -0800, you wrote: >Hi guys, > >Does anyone know how to sort a Hashtable just like the one in Array List? >I need a hastable that contains a bunch of objects (can be string) that is >sortable based on the value of the hashtable. Is there embedded methods >such as in ArrayList.sort method? > >Thanks >Rendra ___________________________________________________________________________ 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
