String s1 = sc.next();
Set<Map.Entry<String, String>> entrySet = map.entrySet();
if (map.containsValue(s1)) {
System.out.println(s1 + "巴西获得世界杯的年份是:");
for (Map.Entry<String, String> stringEntry : entrySet) {
if (stringEntry.getValue().equals(s1)) {
System.out.println(stringEntry.getKey());
} else {
System.out.println(s1 + "没有获得过世界杯冠军");
[size=9.5000pt]}