这是为什么
package zh.codegym.task.task10.task1019;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
/*
功能还不够!
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
HashMap<Integer,String> hashMap=new HashMap<>();
while (true){
String ID=reader.readLine();
if(ID.isEmpty())break;
String N=reader.readLine();
if(N.isEmpty()){
hashMap.put(Integer.parseInt(ID),"");
break;
}
hashMap.put(Integer.parseInt(ID),N);
}
for(Map.Entry<Integer,String> map:hashMap.entrySet())
System.out.println(map.getKey()+" "+map.getValue());
}
}