permaculture playing cards
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: HashSet
 
It's not a secret anymore!