Re: Doesn't Sort data in Ascending way in Hash Table?
Posted By:
ankush_purwar
Posted On:
Wednesday, March 8, 2006 01:58 PM
HashMap and Hashtable doesn't give you any guarantee about the order. they can be in any order irrespective the order in which you have stored it.
Try java.util.TreeMap if you want natural ordering.