I need to convert a HashMap to an array; could anyone show me how it\'s done?
HashMap
HashMap hashMap = new HashMap<>(); String[] stringValues= new String[hashMap.values().size()]; hashMap.values().toArray(stringValues);