расскажите об ошибке
package com.javarush.task.task08.task0829;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Модернизация ПО
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// List of addresses
List<String> addresses = new ArrayList<>();
while (true) {
String family = reader.readLine();
if (family == null || family.isEmpty()) break;
addresses.add(family);
}
// Read the house number
String city = reader.readLine();
if (city.equals("Москва")) {
System.out.println("Ивановы");
}
else if (city.equals("Киев")) {
System.out.println("Петровы");
}
else if (city.equals("Лондон")) {
System.out.println("Абрамовичи");
}
}
}