Obtenez un hashmap dans le tableau

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