I have tried every approach that I know up to this point. I even reviewed conditional operators by finding a useful article online. I was originally just using "&&" and then I played around with the ||(or operator) for my first condition and when I ran it through intellij I was able to print all the seasons. But then when I ran against codegyms verification it said that I failed saying that the checkSeason method should display text on the screen in accordance with the task conditions. PLEASE HELP
package com.codegym.task.task04.task0411;
/*
Seasons on Terra
*/
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 < 3 || month == 12) {
System.out.println("winter");
} else if (month > 2 && month < 6) {
System.out.println("spring");
} else if (month > 5 && month < 9) {
System.out.println("summer");
} else if (month > 8 && month < 12) {
System.out.println("fall");
}
}
}