Hello, i have a problem in output, can everyone help me?
here is my code
Scanner in=new Scanner(new File("input.txt")); PrintWriter out=new PrintWriter(new File("output.txt")); out.println(in.next()+" "+in.nextInt()+1); out.close();
input is John 17
output must be John 18
but in this programm it is John 171
can i write this in one line?