Here is the code:
HashMap<String, Integer> arr = new HashMap<String, Integer>();
arr.put("one", 1);
arr.put("two", 2);
arr.put("three", 3);
how can I to get all strings as String[] array and all integers as Int[] array?
thanks to all! all is correct, if somebody has the same Problemm, answer is:
String[] entry =(String[])arr.keySet().toArray(new String[arr.size()]);
Integer[] entry_values =(Integer[])arr.values().toArray(new Integer[arr.size()]);