Ругается на последний пункт
package com.javarush.task.task08.task0828;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
Map<String,Integer> month = new HashMap<>();
month.put("January",0);
month.put("February",1);
month.put("March",2);
month.put("April",3);
month.put("May",4);
month.put("June",5);
month.put("July",6);
month.put("August",7);
month.put("September",8);
month.put("October",9);
month.put("November",10);
month.put("December",11);
String s = read.readLine();
for (Map.Entry<String, Integer> pair : month.entrySet()) {
String key = pair.getKey();
Integer value = pair.getValue();
if (key.equals(s)) {
System.out.println(key + " is the " + value + " month");
}
}
}
}