/*
 * We discussed how memory serves as the workspace for a running program and wrote a program
 * that reads 2 integers from the keyboard and prints to the screen the sum of the values read.
 * We also discussed the characters that can be used in identifiers.
 * We concluded by discussing the difference between primitive types and reference types and
 * began discussing the different primitive types.
 */

 import java.util.Scanner;

 class Jan11 {
    public static void main(String[] args) {
        Scanner kb = new Scanner(System.in);
        System.out.println("Please enter an integer");
        int input1 = kb.nextInt();
        System.out.println("Please enter a second integer");
        int input2 = kb.nextInt();
        int sum = input1 + input2;          // arithmetic
        System.out.println("Sum: " + sum);  // concatenation
    }
 }