File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes sorting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "sorting" Watch "sorting" New topic


Donald Wynn

Joined: Dec 04, 2002
Posts: 29
I want to sort a some report totals thats in a hashtable whats the best way to do this?
Sumeet Gaikwad
Ranch Hand

Joined: Mar 07, 2002
Posts: 37
Dear Donald,
If you want to sort the hashtable then use the following code.

Hope this helps you.

Sumeet Gaikwad<br />SCJP, SCWCD<br />-----------------------------------------------------------------------------------<br />Nothing is impossible because it spells... I M Possible !!!
I agree. Here's the link:
subject: sorting
It's not a secret anymore!