whats the problem
package com.codegym.task.task10.task1019;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
/*
Functionality is not enough!
*/
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<Integer, String>();
while(true) {
String nn = reader.readLine();
if(nn.equals(null))
{
break;
}
int id = Integer.parseInt(nn);
String name = reader.readLine();
if(name.equals(null)){
map.put(id,null);
break;
}
map.put(id, name);
}
for(HashMap.Entry<Integer,String> pair : map.entrySet()) {
int i = pair.getKey();
String s = pair.getValue();
System.out.println( i + " " + s);
}
}
}