Title: Sorting Java Object Question
You can sort on the return of a hashtable but a hashtable is not guaranteed to return in any sort order.  Better to use one of the 2.0 Collections like TreeMap.
 
Cheers!
Mark

----- Original Message -----
Sent: Monday, November 12, 2001 7:51 PM
Subject: Sorting Java Object Question

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

Reply via email to