I keeps saying I am doing something wrong with the winter months... I am not sure what is wrong
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) {
//write your code here
if (month == 1 || month == 2 || month == 12)
{
System.out.println("The Season is winter");
}
else if (month == 3 || month == 4 || month == 5)
{
System.out.println("The Season is spring ");
}
else if (month == 6 || month == 7 || month == 8)
{
System.out.println("The Season is summer");
}
else if (month == 9 || month == 10 || month == 11)
{
System.out.println("The Season is autumn");
}
}
}