Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set and ordering of elements in the order it was inserted

ManjitMar 25 2011 — edited Mar 28 2011
Which set implementation I can use to retrieve elements in the order it was inserted.

HashSet doesnt guarantee the order..

LinkedHashSet I believe does....but I am not sure.The docs are either not clear or I am not getting

Can some one give me some hint

thx
m
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2011
Added on Mar 25 2011
11 comments
915 views