package javacc.test; import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("input your name:"); String name = input.nextLine(); System.out.println("input your age:"); int age = input.nextInt(); System.out.println("Hello, " + name + ". Next year, you'll be " + (age + 1) + " years old"); input.close(); } }