1 Map<String, String> map = new HashMap<String, String>();
2
3 map.put("abc", "123");
4 map.put("xyz", "456");
5
6 for(Entry<String, String> entry : map.entrySet()) {
7 if(entry.getValue().equalsIgnoreCase("456")) {
8 System.out.println(entry.getKey());
9 }
10 }
11