posted 13 years ago
Hi ,
I have created a Employee overriding equals and hashCode .
I am providing same values to the Employee Object , but please let me know why this is being added two times inside a HashSet (Even though they both are of same values
)
Please see the code ,
This is my client :
import java.util.HashSet;
import java.util.Iterator;
The output is :
The b vaue is true
The b2 vaue is true
Save India From Corruption - Anna Hazare.