This is the code, I'm not sure what's wrong:
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
System.out.println(a<0 ? a+1 : a*a);
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 {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
System.out.println(a<0 ? a+1 : a*a);
}
}