// Scott DeRuiter 9/22/2002 // Input2.java // Input an integer and print it out. // 7/15/2011 - Greenstein: Changed TextReader to Scanner import java.util.Scanner; public class Input2 { public static void main ( String [] args ) { Scanner console = new Scanner( System.in ); System.out.print( "Input an integer > " ); int num = 0; num = console.nextInt( ); System.out.println( "num = " + num ); } }