title: items are not being added
body: <p>When the items in my hashmap are being printed [see code starting with <code>for (Map.Entry&lt;String, World&gt; entry : WorldsByName.entrySet())......</code>], only the last item that I have added gets printed out. The others disappear.</p>
  
  <pre><code>.....
  
          public interface World {
              abstract void run(String s);
          }
  
          private void sample(String[] inserted) {
              Map&lt;String, World&gt; WorldsByName = new HashMap&lt;String, World&gt;();
              WorldsByName.put(inserted[1], new World() {
                  public void run(String s) {
                      if (inserted[0].equals("house")) {
                          System.out.println(inserted[0] + " with name " + s + " has been created.");
  
                      } else {
                          System.out.println("What do you mean by " + inserted[0] + " ?");
                      }
                  }
              });
  
  .....
  </code></pre>