这个题输出正确 无法通过
package zh.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;
import java.util.Arrays;
/*
月份编号
*/
public class Solution {
public static void main(String[] args) throws IOException {
//在此编写你的代码\
String[] sMon = {"January", "February", "March",
"April", "May", "June", "July", "August",
"September", "October", "November", "December"};
ArrayList<String> mon = new ArrayList<>(Arrays.asList(sMon));
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String in = br.readLine();
for (int i = 0; i < mon.size(); i++){
String m = mon.get(i);
if (in.equals(m)){
System.out.println(in + " 是第 " + (i+1) + " 个月");
}
}
}
}