import java.util.*; public class ScannerUsage { public static void main (String args[]) { Scanner stdin = new Scanner (System.in); System.out.println ("Enter first value"); int x = stdin.nextInt(); int y; System.out.println ("Enter second value"); y = stdin.nextInt(); int z = x + y; System.out.println ("The sum of " + x + " and " + y + " is " + z); } }