How to Maintain order of insertion using collections
- by sarah
I want to add a key,value pair into a hashtable (or any other collection) but have to maintain insertion order. How can I do this?
Like I'll add 1 as key "one" as value, 2 as key and "two" as value.
The output should be ordered as:
1:one
2:two