Forums Register Login

Duplicates handling by Set Collection

+Pie Number of slices to send: Send
How does the Set Collection handles when the duplicates trying to added
+Pie Number of slices to send: Send
Have a look at the description of the add() method in the Set Javadoc
+Pie Number of slices to send: Send
 

Originally posted by vijayk gopu:
How does the Set Collection handles when the duplicates trying to added


The add method simply returns false and doesn't give you any errors.
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 740 times.
Similar Threads
Diff b/w set and List
collections!
Collection question
Set question
Collection Interfaces
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:41:06.