The mentor is saying there is a typo however not seeing it.
Month is being entered as input
Month is NOT all uppercase (only the first letter
Even added a "."
Yet mentor is saying there is a typo
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.HashMap;
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<String> calendar = new ArrayList<>();
calendar.add("January");
calendar.add("February");
calendar.add("March");
calendar.add("April");
calendar.add("May");
calendar.add("June");
calendar.add("July");
calendar.add("August");
calendar.add("October");
calendar.add("November");
calendar.add("December");
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String monthName = reader.readLine();
for (int i =0; i< calendar.size();i++){
if (monthName.equals(calendar.get(i))){
System.out.println(calendar.get(i) + " is month " + (i+1) + ".");
}
}
}
}