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
It sounds like the best way is for you to iterate over entries using map.entrySet() since map.containsValue() probably does this anyway.
map.entrySet()
map.containsValue()