I need to convert a HashMap to an array; could anyone show me how it\'s done?
HashMap
If you want the keys and values, you can always do this via the entrySet:
entrySet
hashMap.entrySet().toArray(); // returns a Map.Entry[]
From each entry you can (of course) get both the key and value via the getKey and getValue methods
getKey
getValue