Sorry, HashSet cannot store duplicates. If it does, it is a major bug that breaks applications everywhere. Having said that, an object that is a "duplicate" of another implies the objects are...
Type: Posts; User: jashburn
Sorry, HashSet cannot store duplicates. If it does, it is a major bug that breaks applications everywhere. Having said that, an object that is a "duplicate" of another implies the objects are...
I'm not sure if I completely understand... Are you saying that you have Strings that look something like x + "," + z that you added to a HashSet, and when you print out the contents of the HashSet...