title: What is the order of array when derived from Linked hashMap?
body: <p>I have created one linked hash map and then using that map I have generated Map key array like this : - </p>
  
  <pre><code>Map&lt;String, String&gt; map = new LinkedHashMap&lt;&gt;();
  map.put("Str1", "Str1");
  map.put("Str1", "Str1");
  
  String[] keyArray= map.keySet().stream.toArray(String[]::new);
  </code></pre>
  
  <p>Now, the question is what will be the order of keyArray ?
  Is it the same as inserrtion order of linked hashmap or different?
  If it is different then how can we generate an array with same insertion order which linkedhashmap has ?</p>