Someone have any clue where am I mistaking? As you can see I did few combinations butt I still cannot pass testing.
package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner keyboard = new Scanner(System.in);
int x = keyboard.nextInt();
checkNumber(x);
}
public static void checkNumber(int a) {
//int a1;
//String s = "zero";
if (a == 0) {
System.out.println("zero");
}
else if (a % 2 == 0) {
//a1 = a * 2;
System.out.println(a*2);
}
else if (a % 2 != 0) {
//a1 = a + 1;
System.out.println(a+1);
}
}
}