Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Sorting HashTable by values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Sorting HashTable by values" Watch "Sorting HashTable by values" New topic

Sorting HashTable by values

Vijaishanker bala
Ranch Hand

Joined: Sep 08, 2005
Posts: 82
I have a HashTable which contains the following entries

Is it possible to sort this hashtable in ascending/descending order of values.



When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." <br />Linus Torvalds
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
How about

Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
I agree. Here's the link:
subject: Sorting HashTable by values
It's not a secret anymore!