gudii9
asked on
HashSet and TreeSet
I wouldd like to know about HashSet and TreeSet.
I read TreeSet we can add only similar type of object whereas in HashSet we can add any type of objects. I was not clear on that. When, how, why we use each of them. thanks in advance
I read TreeSet we can add only similar type of object whereas in HashSet we can add any type of objects. I was not clear on that. When, how, why we use each of them. thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
as usuall lots of useful stuff here:
http://stackoverflow.com/questions/1463284/hashset-vs-treeset