title: Map to Charsequence[] but not in order
body: <p>I am having a Map and converting to charsequence[] by using the </p>
  
  <pre><code>final CharSequence[] treatmentNameList = treatmentListMap.keySet().toArray(new CharSequence[treatmentListMap.size()]);
  </code></pre>
  
  <p>but the value at position of charsequence[0] and map 0 is not is getting varied. how to get same values in both charsequence and map.
   i tried this also</p>
  
  <pre><code>final CharSequence[] treatmentNameList = treatmentListMap.keySet().toArray(new CharSequence[0]);
  </code></pre>