Source Code
import java.util.Scanner; public class SumTwoIntegers { public static void main(String[] args) { // Create a Scanner object to read input Scanner scanner = new Scanner(System.in); // Read the two integers A and B int A = scanner.nextInt(); int B = scanner.nextInt(); // Compute the sum of A and B int sum = A + B; // Print the result System.out.println(sum); // Close the scanner scanner.close(); } }