Что делать?
package com.javarush.task.task04.task0411;
/*
Времена года на Терре
*/
public class Solution {
public static void main(String[] args) {
checkSeason(0);
checkSeason(4);
checkSeason(7);
checkSeason(10);
}
public static void checkSeason(int month) {
//напишите тут ваш код
String w = "зима";
String s = "весна";
String s2 = "лето";
String a = "осень";
if (month<=2 && month>0 || month==12){
System.out.println("Пример для номера месяца "+month + ": ");
System.out.println(w);
}
else if (month>2 && month<=5) {
System.out.println("Пример для номера месяца "+month + ": ");
System.out.println(s);
}
else if (month>5 && month<=8) {
System.out.println("Пример для номера месяца "+month + ": ");
System.out.println(s2);
}
else {
System.out.println("Пример для номера месяца "+month + ": ");
System.out.println(a);
}
}
}