Re: This question about Collections
Posted By:
WarnerJan_Veldhuis
Posted On:
Friday, December 8, 2006 02:54 AM
A HashMap does not retain order. It uses a key/value pair to store data instead of indices. Use a List for that, or like the other answer, a LinkedHashMap.
Re: This question about Collections
Posted By:
Anjan_Bacchu
Posted On:
Friday, December 8, 2006 02:39 AM
Use LinkedHashMap(available from Java 1.4 onwards).
BR,
~A