If I have the value \"foo\", and a HashMap ftw for which ftw.containsValue(\"foo\") returns true, how can I
\"foo\"
HashMap ftw
ftw.containsValue(\"foo\")
true
Using Java 8:
ftw.forEach((key, value) -> { if (value.equals("foo")) { System.out.print(key); } });