This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
java doubts
Transforming between collections
Java Clarification
what is the the natural Order for special characters????