It\'s a simple question, I have a simple HashMap of which i want to reverse the keys and values.
HashMap myHashMap = new HashMap<
Iterate through the list of keys and values, then add them.
HashMap reversedHashMap = new HashMap(); for (String key : myHashMap.keySet()){ reversedHashMap.put(myHashMap.get(key), key); }