import java.util.Scanner; public class NumAdder { public static void main(String[] a) { Scanner sc = new Scanner(System.in); // ask for a number System.out.println("insert an integer:"); int i = sc.nextInt(); // ask for another number System.out.println("insert another integer:"); int j = sc.nextInt(); // finally, show the sum of the two numbers int sum = i + j; System.out.println("cool, the sum of the two is " + sum); } }