This preview shows page 1. Sign up to view the full content.
Unformatted text preview: number = console.nextInt(); // read an integer entered by a user // display the number with other messages System.out.print("This program reads an integer from a keyboard,\n" + "and prints it out on the display screen.\n" + "The number is " + number + ".\n" + "Make sure that you get the exact same output as the expected one.\n"); } }...
View Full Document
- Spring '10