Hello guys, I am populating my Hashtable using numeric key from 1 to X, due to an inconsistent sequence in number. I need to display the records in order on screen and this is not possible 'cos the hashtable randomly arranges it's elements. So, is there a way of arranging the objects in a hasttable using it's numeric keys. All ideas are welcomed. Cheers
Using an arraylist, since it is not a group of key-value pairs, how could you perform a sort without the keys? Based on your question, this doesn't seem to be an option for you. A TreeMap seems to be the best way to go.
No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?