title: Behaviour of LinkedHashMap's keySet() and values() methods
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2923856/is-the-order-guaranteed-for-the-return-of-keyset-of-a-linkedhashmap-object">Is the order guaranteed for the return of keySet() of a LinkedHashMap object?</a>  </p>
  </blockquote>
  
  
  
  <p>Consider I create a LinkedHashMap, like the following:</p>
  
  <pre><code>Map&lt;String, String&gt; map = new LinkedHashMap&lt;String, String&gt;();
  map.put("a", "aa");
  map.put("b", "bb");
  map.put("c", "cc");
  </code></pre>
  
  <p>When I call <code>keySet()</code>, does that give me an ordered set? And if I call <code>values()</code>, are these ordered too?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Sry, meant ordered, not sorted.</p>