Update HashMap.java

You should run this and see.
The put more or less works in test 1. Now the iterator is throwing null pointer exception.