else if (month==12); else without if public static void checkSeason(int month) { if (month<=2) { System.out.println("winter"); } else if (month<=5) { System.out.println("spring"); } else if (month<=8); { System.out.println("summer"); } else if (month==12); { System.out.println("winter"); } else System.out.println("autumn"); } }