in this code?
package com.codegym.task.task08.task0829;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
/*
Software update
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// List of addresses
HashMap<String, String> city = new HashMap<>();
while (true) {
String family = reader.readLine();
if (family.isEmpty()) break;
String cityf = reader.readLine().toUpperCase();
city.put(family, cityf);
}
// Read city
String cityd = reader.readLine().toUpperCase();
for (Map.Entry<String, String> pair : city.entrySet()) {
String key = pair.getKey(); // Key
//String value = pair.getValue(); // Value
if (pair.getValue().equals(cityd))
System.out.println(key);
}
}
}