title: How to avoid items being re-ordered when put into java HashMap
body: <p>I'm creating a new Map and pushing strings into it (no big deal) -but I've noticed that the strings are being re-ordered as the map grows. Is it possible to stop this re-ordering that occurs so the items in the map retain the order the were put in with?</p>
  
  <pre><code>Map&lt;String,String&gt; x = new HashMap&lt;String, String&gt;();
  x.put("a","b");
  x.put("a","c");
  x.put("a","d");
  
  x.put("1","2");
  x.put("1","3");
  x.put("1","4");
  
  //this shows them out of order sadly...
  for (Map.Entry&lt;String, String&gt; entry : x.entrySet()) {
      System.out.println("IN THIS ORDER ... " + entry.getValue());
  }
  </code></pre>