Something is wrong with my output but I can't figure it out what.Cannot verify last step - display the text.
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
ArrayList<String> months = new ArrayList<String>(12);
months.add("January");
months.add("February");
months.add("March");
months.add("April");
months.add("May");
months.add("June");
months.add("July");
months.add("August");
months.add("September");
months.add("October");
months.add("November");
months.add("December");
String month;
String input = s.toUpperCase();
for (int i = 0; i < 12; i++){
month = months.get(i);
if (month.toUpperCase().equals(input))
System.out.println("\""+month+ " is month "+(i+1)+"\"");
}
}
}