What is wrong with my code to this solution ? the output are exactly the same :( but the last condition are not met.
package com.codegym.task.task08.task0828;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/*
Month number
*/
public class Solution {
public static void main(String[] args) throws IOException {
//write your code here
ArrayList<Integer> lists = new ArrayList<Integer>();
for (int i = 1; i <= 12; i++) {
lists.add(i);
}
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String input = reader.readLine();
int month;
switch (input) {
case "January":
month = lists.get(0);
System.out.println(input + " is month " + month);
break;
case "Feburary":
month = lists.get(1);
System.out.println(input + " is month " + month);
break;
case "March":
month = lists.get(2);
System.out.println(input + " is month " + month);
break;
case "April":
month = lists.get(3);
System.out.println(input + " is month " + month);
break;
case "May":
month = lists.get(4);
System.out.println(input + " is month " + month);
break;
case "June":
month = lists.get(5);
System.out.println(input + " is month " + month);
break;
case "July":
month = lists.get(6);
System.out.println(input + " is month " + month);
break;
case "August":
month = lists.get(7);
System.out.println(input + " is month " + month);
break;
case "September":
month = lists.get(8);
System.out.println(input + " is month " + month);
break;
case "October":
month = lists.get(9);
System.out.println(input + " is month " + month);
break;
case "November":
month = lists.get(10);
System.out.println(input + " is month " + month);
break;
case "December":
month = lists.get(11);
System.out.println(input + " is month " + month);
break;
}
}
}