title: Java Map question
body: <p>I have one Map that contains some names and numbers</p>
  
  <pre><code>Map&lt;String,Integer&gt; abc = new HashMap&lt;String,Integer&gt;();
  </code></pre>
  
  <p>It works fine. I can put some values in it but when I call it in different class it gives me wrong order. For example:</p>
  
  <p>I putted</p>
  
  <pre><code>abc.put("a",1);
  abc.put("b",5);
  abc.put("c",3);
  
      Iterator&lt;String&gt; iter = abc.keySet().iterator();
  
      while (iter.hasNext()) {
  
          String name = iter.next();
          System.out.println(name);
      }
  </code></pre>
  
  <p>some time it returns the order (b,a,c) and some time (a,c,b).</p>
  
  <p>What is wrong with it? Is there any step that I am missing when I call this map?</p>
  
  <p>Edit:
  I changed to HashMap and result is still same</p>