Ich vermute, es erkennt a nicht als int an. Aber wieso?
package de.codegym.task.task04.task0412;
/*
Positive und negative Zahlen
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
int na = Integer.parseInt(a);
System.out.println(a); //nur zur Kontrolle, 1 kommt als Output raus
if ( a < 0) {System.out.println( a + 1);
else if (a == 0) System.out.println(0);
else (a > 0) System.out.println( a * 2);}
}
}