• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

insert record in sorted order into a hashtable

does anyone knows how to insert records orderly into a hashtable? some sample codes are appreciated.
0
lcchu
Asked:
lcchu
1 Solution
 
objectsCommented:
Hashtable does not support ordering of keys.
You need to use TreeMap for this purpose.
0
 
lwinkenbCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Accept comment by objects as answer.
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
lwinkenb
EE Cleanup Volunteer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now