title: java - how to iterate through maps in order
body: <p>This is the code:</p>
  
  <pre><code>for(String key : mymap.stringPropertyNames()) {
  //mycode
  }
  </code></pre>
  
  <p>This works correctly but I noticed I get the values I need in random order, is there a way to loop through the map using a particular order?</p>
  
  <p>EDIT: <code>Mymap</code> is a <code>properties</code> object. </p>