What's wrong with my code.
Not validated for case zero.
package com.codegym.task.task04.task0412;
/*
Positive and negative numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
InputStream input = System.in;
InputStreamReader stream = new InputStreamReader(input);
BufferedReader buffer = new BufferedReader(stream);
String num = buffer.readLine();
int number = Integer.parseInt(num);
if(number>0){
number = number*2;
System.out.println(number);
}else if(number<0){
number = number + 1;
System.out.println(number);
}else{
System.out.println("zero");
}
}
}