Скажите что не так? Не разберусь никак
package com.javarush.task.task08.task0828;
import java.io.IOException;
import java.io.*;
import java.util.*;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
Map<String, Integer> months = new HashMap<>();
months.put("January", 1);
months.put("February", 2);
months.put("March", 3);
months.put("April", 4);
months.put("May", 5);
months.put("June", 6);
months.put("July", 7);
months.put("August", 8);
months.put("September", 9);
months.put("Oktober", 10);
months.put("November", 11);
months.put("December", 12);
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
a = a.substring(0, 1).toUpperCase() + a.substring(1);
for (Map.Entry<String, Integer> pair: months.entrySet()) {
String b = pair.getKey();
if(a.equals(b)){
System.out.println(a + " is the " + pair.getValue() + " month");
}
}
}
}