I want to delete duplicates totally from hashsets.
For example:
- hashset
names1
containsa, b, c, d
- hashset
names2
containsx, y, z, a
I want that hashset names3
should have b, c, d, x, y, z
Deleting the common element between the 2 hashsets and storing it in third hashset.how to do this?