So I have a java hashmap like below:
hMap.put(\"1\", \"One\"); hMap.put(\"2\", \"Two\"); hMap.put(\"3\", \"Two\");
I would like to remove A
for (Iterator> it = hMap.entrySet().iterator(); it.hasNext();) { Map.Entry e = it.next(); if ("Two".equals(e.getValue())) { it.remove(); } }