error converting a string to a number 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 BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String sNum = reader.readLine(); int nNum = Integer.parseInt(sNum); nNum =(int)System.in.read(); if (nNum > 0) { nNum =nNum * 2; System.out.println(nNum);} else if( nNum < 0){ nNum = nNum +1; System.out.println(nNum); } else {nNum = nNum; System.out.println(nNum);} } }