again the same problem
package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
int x = System.in.read();
if (x > 0){
x = (x * 2);
System.out.println(x);
}
else if (x < 0){
x++;
System.out.println(x);
}
else
System.out.println(0);
}
}