How do I print out the corresponding key of the value in that map? I don't think there's a getKey() method for a HashMap.
Map <Integer, String > map1 = new HashMap <Integer, String> ();
map1.put(7,"GREAT");
map1.put(8,"Try Again!");
if (map1.containsValue("GREAT")){
System.out.println(WHAT DO I PUT HERE?);
}