Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes Difference between HashSet and TreeSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between HashSet and TreeSet" Watch "Difference between HashSet and TreeSet" New topic
Author

Difference between HashSet and TreeSet

Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
hi all,
Whats the difference between the HashSet and TreeSet class. I mean I want the difference in the way they store the objects.

Regards,
Sivaraman.L
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
The JavaDocs for these classes should clearly answer your question. If not, post specific questions about the aspects you didn't understand.
 
GeeCON Prague 2014
 
subject: Difference between HashSet and TreeSet