aspose file tools
The moose likes Java in General and the fly likes HashSet: Allow Duplicates Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "HashSet: Allow Duplicates" Watch "HashSet: Allow Duplicates" New topic
Author

HashSet: Allow Duplicates

Ruchika Kapoor
Greenhorn

Joined: Oct 03, 2004
Posts: 22
Hi,

Please find the code as below:


Why am I able to add duplicate objects(AB), while java api says, set does not allow duplicates.

Please advice.

Thanks
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

hashCode


[My Blog]
All roads lead to JavaRanch
Ruchika Kapoor
Greenhorn

Joined: Oct 03, 2004
Posts: 22


thanks Christophe !
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: HashSet: Allow Duplicates
 
Similar Threads
Generics Compiler error
Question about hashSet
Hashset & overriding hashcode()
effect of overriding equals on Sets?
Behind HashSet