title: Store hashMap in array
body: <p>I would like to store HashMaps in an array. I'm trying to make just one HashMap, fill it with specific information and store it into one element of an array. Then I would like to overwrite the information in that Hashmap with different information and then store that into a different element of that array. I would like to do this multiple times. What's the best way to go about doing this?</p>
  
  <p>Right now I have:</p>
  
  <pre><code>HashMap[][] location = new HashMap[columns][rows];
  HashMap &lt;String, String&gt; area = new HashMap &lt;String, String&gt; ();
  
  public Map() {
  
      area.put("description", "You are in the upper left\n");
      location[0][0] = area;
  
      area.put("description", "You are in the upper middle\n");
      location[1][0] = area;
  }
  </code></pre>
  
  <p>The problem with this is that now both location[0][0] and location[1][0] have the same description.</p>