/* * @topic T00407 Console I/O and the Scanner class * @brief Scanner, Integer, System.out.printf() */ package thenumbers; import java.util.Scanner; public class TheNumbers { public static void main(String[] args) { Scanner sc = new Scanner( System.in ); Integer smartInt = new Integer( 123 ); System.out.printf( "Hi there, type a number, like %d: ", smartInt ); smartInt = sc.nextInt(); System.out.println( "You entered " + smartInt ); } }