Всем привет!
Помогите, валидатор шалит
package com.javarush.task.task08.task0828;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.*;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
Scanner line=new Scanner(System.in);
Map<String,Integer> map = new HashMap<String, Integer>();
map.put("January",1);
map.put("February",2);
map.put("March ",3);
map.put("April",4);
map.put("May",5);
map.put("June",6);
map.put("July",7);
map.put("August",8);
map.put("September",9);
map.put("October",10);
map.put("November",11);
map.put("December",12);
String month=line.nextLine();
int monthNumber = map.get(month);
System.out.println(month+" is the "+ monthNumber+" month.");
//"May is the 5 month".
}
}