Hello,
I have a problem with the class HashSet, I redefined the equals method for a class that I use, and yet if I insert two different objects with similar attributes, the second is not rejected is to say that the HashSet does not see it already contained. I have a question for you , are there non-unique elements in the Hashset. If this can be done in the HashSet, then please post back. Waiting for the reply. The HashSet is not based Does not the equals method of the object? If ever I tried with a TreeSet, and there is no problem. Any more help on this will be highly appreciated. Thanks in advance.
Bookmarks