Мог бы кто-нибудь объяснить где ошибка? Заранее благодарен.
Cоблюдаются все условия, кроме последнего, и на экране нет Winter!!!
package com.javarush.task.task04.task0411;
/*
Времена года на Терре
*/
public class Solution {
public static void main(String[] args) {
checkSeason(12);
checkSeason(4);
checkSeason(7);
checkSeason(10);
}
public static void checkSeason(int month) {
if((month <= 2) && (month == 12))
System.out.println("Winter");
else if((month >= 3) && (month <= 5))
System.out.println("Spring");
else if((month >= 6) && (month <= 8))
System.out.println("Summer");
else if((month >= 9) && (month <= 11))
System.out.println("Autumn");
}
}