// A short program that uses the Scanner for user input. import java.util.*; // so that I can use Scanner public class InputExample { public static void main(String[] args) { Scanner console = new Scanner(System.in); // prompt System.out.print("Type an x and y value: "); int x = console.nextInt(); int y = console.nextInt(); System.out.println("You typed " + x + ", " + y); } }