Wednesday, May 23, 2001 07:19 AM
The 1.4 JDK will add a new map implementation that preserves key-value insertion order. Until then, you're on your own to maintain insertion order.
Wednesday, May 23, 2001 06:52 AM
Hashtable doesn't guarantee order: it uses an hash function to store objects and order is lost, use a TreeMap instead and define your own sorting method using your own Comparator.