I want to convert hashMap (String,Integer) such as String[], Integer[].
But I heard the information about hashmap.keyset().array() and hashmap.values().array() doesn't match, so it is dangerous,
then, is it possible?
for(Map.Entry<String,Integer> val: hashmap.entrySet()) {
int n = 0;
String key[n]=val.getKey();
int value[n]=val.getValue();
n++;
}