Im getting an error but I do have the correct answer, It feels a bit like a bummer that the correct solution is a switch. But this works also fine. package com.codegym.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 == 12 || (month < 3)){ System.out.println("winter"); } if (month > 2 && month < 6) { System.out.println("spring"); } if (month > 6 && month < 9) { System.out.println("summer"); } if (month > 8 && month < 12) { System.out.println("autumn"); } } }