Sorting a hashtable on the basis of the value it contains.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, January 13, 2005 05:49 AM

I am having a hashtable it contains object.In that object their is a Count variable on which we can make calculations.we can get the value of count by classname.getCount method.So now i want to sort that hashtable on the basis of value of the count.

Re: Sorting a hashtable on the basis of the value it contains.

Posted By:   Jani_Kaarela  
Posted On:   Thursday, January 13, 2005 06:11 AM


See my reply to the earlier post. If you are using a Map (which Hashtable is), you're out of luck and can't use the solution I suggested.



PS. Multiple posts on the same subject is inherently evil. Bad! Bad, BAD, BAD!!! *frown*

About | Sitemap | Contact