title: HashMap not returning values based on key
body: <p>I'm trying to use a HashMap with my class Cell as the key. However, after putting an item into the HashMap, calling contains on the item will return false.</p>
  
  <pre><code>public static void main(String args[]) {
          HashMap&lt;Cell, String&gt; map = new HashMap&lt;Cell, String&gt;();
          map.put(new Cell(0,0), "Bob");
          System.out.println(map.containsKey(new Cell(0,0)));
          System.out.println(new Cell(0,0).equals(new Cell(0,0)));
  }
  </code></pre>
  
  <p>This prints out false and true, where it should print true and true, since according to the Map docs containsKey uses .equals(). What am I doing wrong?</p>