How to keep the order of elements in hashtable

Viewed 31046

I have a hashtable . values() method returns values in some order different from the order in which i am inserted.How can i get the values in the same order as i inserted?Using LinkedHashmap is an alternative but it is not synchronized.

5 Answers
Related