"Проверь, что правильно определяешь время года для зимних месяцев." Выдает вот такую ошибку. "11 месяц не подходит"
package com.javarush.task.task04.task0411;
/*
Времена года на Терре
*/
public class Solution {
public static void main(String[] args) {
checkSeason(12); //зима 12,1,2
checkSeason(4); //висна 3,4,5
checkSeason(7); //лето 6,7,8
checkSeason(10); //осень 9,10,11
}
public static void checkSeason(int month) {
if (month > 10) {
System.out.println("зима");
}
if (month < 6) {
System.out.println("весна");
}
if (month > 6 && month < 9) System.out.println("лето");
if (month>9 && month<12) System.out.println("осень");
}
}