/*

  This program asks the user for two numbers and prints the sum of these numbers on the screen.

 */

import java.util.Scanner;

public class SumCalculator {

  public static void main(String[] args) {
      // Create a new Scanner object to read user input
      Scanner input = new Scanner(System.in);

      // Read the first number and save it in variable number1
      System.out.println("Please enter a number: ");
      int number1 = input.nextInt();

      // Read the second number and save it in variable number2
      System.out.println("Please enter another number: ");
      int number2 = input.nextInt();

      // Print the sum of the two numbers
      int sum = number1 + number2;
      System.out.println("The sum is: " + sum);
  }

}