Подскажите, пожалуйста, что не так ? Я уже и скобки поставила, и всё равно не проходит проверку. По логике то вроде верно, не пойму, почему не сработало то
package com.javarush.task.task08.task0828;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
String name = reader.readLine();
list.add(name);
switch (list.get(0)){
case "January": {
System.out.println ("January is the 1 month");
break;}
case "February": {
System.out.println ("February is the 2 month");
break;}
case "March":{
System.out.println ("March is the 3 month");
break;}
case "April":{
System.out.println ("February is the 4 month");
break;}
case "May":{
System.out.println ("May is the 5 month");
break;}
case "June": {
System.out.println ("June is the 6 month");
break;}
case "July":{
System.out.println ("February is the 7 month");
break;}
case "August":{
System.out.println ("August is the 8 month");
break;}
case "September":{
System.out.println ("February is the 9 month");
break;}
case "November":{
System.out.println ("February is the 10 month");
break;}
case "December":{
System.out.println ("February is the 11 month");
break;}
}
}
}