Problem with execution of code

I have a code problem after execution, there is the code and error that show:
import java.util.Scanner;
public class A {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
int a;
int n;
a=Integer.parseInt(scanner.nextLine());
n=Integer.parseInt(scanner.nextLine());
if((a>0&&a<13)&&(n>0&&n<32)){
if((a==12&&n>20)||a<3||(a==3&&n<20)){
System.out.println(“winter”);
}
if((a==3&&a<=6&&n>=20)||(a>3&&a<=6&&n<=20)){
System.out.println(“spring”);
}
if((a==6&&n>=21)||(a>6&&a<=9&&n<=21)){
System.out.println(“summer”);
}
if((a==9&&n>=22)||(a>9&&a<=12&&n<=20)){
System.out.println(“autumn”);
}
}
}
}

Your are printing the first letter with Lower Case, try with Upper Case. Meaning “Winter”, “Spring”, etc.

Mate, next time use Pastebin to share your code, its so ugly this way… maybe it will be a good idea to share the task requirements too…
Anyway , just look carefully at your variables (types)… IR means invalid return (exeption) , no WA(wrong answer)…
Before open topic here,Try to debbug the program too, it will be extremely useful for you.
Greetings , Todor :slight_smile: