If I have the value "foo", and a HashMap<String> ftw for which ftw.containsValue("foo") returns true, how can I get the corresponding key? Do I have to loop through the hashmap? What is the best way to do that?

39 s
39

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *