File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes HashSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "HashSet" Watch "HashSet" New topic
Author

HashSet

Seth Anshul
Greenhorn

Joined: May 02, 2006
Posts: 16
Is there a way for a HashSet to have duplicate values?
Amit Y Desai
Ranch Hand

Joined: Dec 06, 2007
Posts: 35
Hash set is meant for having non-duplicate values.
If you want duplicate values then go for other collection interfaces.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashSet
 
Similar Threads
Iterator better for that?
add values to a set and remove
Hashmap
Question About TreeSet?
How to remove dublicate elements from List