Question: Create a new Java program called AgeGuess which 1. Creates a new Scanner object 2. Declares two variables: String name; int ageGuess; 3. Uses the
Create a new Java program called AgeGuess which
1. Creates a new Scanner object
2. Declares two variables: String name; int ageGuess;
3. Uses the Scanner objects methods to read in the name and ageGuess from the keyboard. Make sure to prompt the user for each value. The value entered should be on the same line as the prompt.
4. Displays the ageGuess and name variable values. Make sure to label each.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
