title: TreeMap key values to String array
body: <p>I am trying to add the key values from a Treemap to a String[], but i am doing something wrong and i get this: "[Ljava.lang.String;@281ec58a". Can anyone help?
  Thanks in advance.</p>
  
  <p>This is the code i'm using:</p>
  
  <pre><code>    TreeMap t = new TreeMap(hm); //hm is a Hashmap
      t = (TreeMap) sortByValues(t); // i sort the values with this method
      String [] tempa = (String[]) t.keySet().toArray(new String[t.size()]);
  </code></pre>