Obtenha hashmap em matriz

 Object[] objectArray = hashMap.entrySet().toArray();
Ugly Unicorn