Delete comment from: Javarevisited
hashCode can be the same for 2 keys in a HashMap so HashMap uses equals.
In Oracle's Java implementation HashSet is only a wrapper around a HashMap.
Oct 1, 2011, 8:56:49 AM
hashCode can be the same for 2 keys in a HashMap so HashMap uses equals.
In Oracle's Java implementation HashSet is only a wrapper around a HashMap.
Oct 1, 2011, 8:56:49 AM