//HashTable public synchronized V put(K key, V value) { // Make sure the value is not null if (value == null) { throw new NullPointerException();
} //....
addEntry(hash, key, value, index); returnnull;
} //HashMap public V put(K key, V value) { return putVal(hash(key), key, value,false, true);
}