System.out.print("Enter first integer: "); // prompt
System.out.print to display the message
"Enter first integer: ". This message is called a prompt because it directs the user to take a specific action. We use method
println so that the user’s input appears on the same line as the prompt. Recall from Section 2.2 that identifiers starting with capital letters typically represent class names. Class
System is part of package java.lang. Notice that class
System is not imported with an
import declaration at the beginning of the program.