Хэлп!
package com.javarush.task.task08.task0828;
import java.io.IOException;
import java.util.*;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
HashMap<String, String> months = new HashMap<>();
months.put("January", "January is the 1 month");
months.put("February", "February is the 2 month");
months.put("March", "March is the 3 month");
months.put("April", "April is the 4 month");
months.put("May", "May is the 5 month");
months.put("June", "June is the 6 month");
months.put("July", "July is the 7 month");
months.put("August", "August is the 8 month");
months.put("September", "September the 9 month");
months.put("October", "October is the 10 month");
months.put("November", "November is the 11 month");
months.put("December", "December is the 12 month");
Scanner scanner = new Scanner(System.in);
String nameOfMonth = scanner.nextLine();
System.out.println(months.get(nameOfMonth));
}
}