posted 22 years ago
hi all,
I have some data in (name, value) pairs that i would like to store in a map. I would like them to be sorted in the order in which i put the values in the map. For example if i have:
resultMap.put( q, "3" );
resultMap.put( b, "4" );
resultMap.put( a, "1" );
So, if i iterate over the keys or values of i map, i would like to retrieve them in the same order as i put them in the map( that is: q,b,a )
How can i impose this order?
Thanks very much in advance...
Priya