| Author |
Iteration of a HashMap in the order of insertion
|
Gaurav Kshatriya
Ranch Hand
Joined: Mar 07, 2010
Posts: 33
|
|
Hi
I want to know how we can iterate a Hashmap in the same order in which we inserted the key value pairs.
|
Thanks
Gaurav.... Cheers....
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14670
|
|
|
Use a LinkedHashMap.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Gaurav Kshatriya
Ranch Hand
Joined: Mar 07, 2010
Posts: 33
|
|
Thanks Christophe
|
 |
 |
|
|
subject: Iteration of a HashMap in the order of insertion
|
|
|