I dont know how to make this last point. My brain is dead. 6h with java
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<String, Integer> mapa = new HashMap<String, Integer>();
for (int i = 0; i < 10; i++) {
int id = Integer.parseInt(reader.readLine());
String imie = reader.readLine();
if (imie.isEmpty())
break;
mapa.put(imie, id);
System.out.println(id+" "+imie);
}
}
}