I feel like I do exactly the same, and I can't see what's wrong???
package com.codegym.task.task04.task0426;
/*
Labels and numbers
*/
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
sc.close();
if (a % 2 == 0 && a < 0) {
System.out.println("Negative even number");
}
if (a % 2 == 1 && a < 0) {
System.out.println("Negative odd number");
}
if (a == 0) {
System.out.println("Zero");
}
if (a % 2 == 0 && a > 0) {
System.out.println("Positive even number");
}
if (a % 2 == 1 && a > 0) {
System.out.println("Positive odd number");
}
}
}