title: Java HashMap sorted by key insertion time - creative order
body: <p>I want to sort hashmap or add all keys to arraylist by creative order
  For example:</p>
  <pre><code>        HashMap&lt;String, String&gt; map_from_file = new HashMap&lt;String, String&gt;();
          map_from_file.put(&quot;C&quot;, &quot;c&quot;);
          map_from_file.put(&quot;B&quot;, &quot;b&quot;);
          map_from_file.put(&quot;D&quot;, &quot;d&quot;);
          map_from_file.put(&quot;A&quot;, &quot;a&quot;);
  
  
          for (String key : map_from_file.keySet()) {
              System.out.println(key);
          }
  </code></pre>
  <p>Output:</p>
  <pre><code>A
  B
  C
  D
  </code></pre>
  <p>I want the output to be:</p>
  <pre><code>C
  B
  D
  A
  </code></pre>
  <p>Thank's for any help</p>