What should I add?
package pl.codegym.task.task10.task1019;
import java.io.*;
import java.util.HashMap;
/*
Funkcjonalność to nie wszystko!
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
HashMap<Integer, String> map = new HashMap<>();
for(int i = 0; i < 10; i++){
int id = Integer.parseInt(reader.readLine());
String imie = reader.readLine();
if(imie.equals("")){
map.put(id, "");
break;
}
if (imie == null) {
System.out.println("");
}
if (id == 0) {
System.out.println("");
}
map.put(id, imie);
}
for(HashMap.Entry<Integer, String> para : map.entrySet()){
String wartosc = para.getValue();
Integer klucz = para.getKey();
System.out.println(klucz + " " + wartosc);
}
}
}