aspose file tools*
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

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.

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Difference between HashSet and TreeSet