//The following line is needed to get a number from the standard input. import java.util.Scanner; public class Input1 { public static void main(String[] args) { System.out.print("Please click in the Console, "); System.out.print("type a number, and press ENTER: "); Scanner scanner = new Scanner(System.in); int i = scanner.nextInt(); //Get one integer from the standard input. System.out.print("Type another number, and press ENTER: "); int j = scanner.nextInt(); scanner.close(); System.out.println("The sum is " + (i + j) + "."); System.exit(0); //successful termination } }