Расскажите, пожалуйста, почему я получаю ошибку инициализации?
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) {
//напишите тут ваш код
String x;
if ((month == 12) || (month == 1) || (month == 2))
x = "зима";
if ((month == 3) || (month == 4) || (month == 5))
x = "весна";
if ((month == 6) || (month == 7) || (month == 8))
x = "лето";
if ((month == 9) || (month == 10) || (month == 11))
x = "осень";
System.out.println (x);
}
}