HashMap
HashMap should be only used when the objects we store as KEYS have implemented the method hashCode in such way that it give unique key for a given object.
@Override public int hashCode() {
name,
socialSecurityNumber
Map myMap = new HashMap();
No comments:
Post a Comment