Please help me find that little mistake lol
package com.codegym.task.task10.task1019;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Functionality is not enough!
*/
public class Solution {
public static void main(String[] args) throws IOException {
HashMap<Integer, String> map = new HashMap<Integer, String>();
createMapNShow();
}
public static void createMapNShow() throws IOException, NullPointerException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
HashMap<Integer, String> map = new HashMap<Integer, String>();
while (true) {
String id = reader.readLine();
String name = reader.readLine();
if (id.isEmpty()) {
break;
}
int b = Integer.parseInt(id);
map.put(b, name);
}
for(Map.Entry<Integer, String> entry : map.entrySet()) {
int num = entry.getKey();
String word = entry.getValue();
System.out.println(num + " " + word);
}
}
}