Question: First, read an integer from input into birthMonth using scnr . nextInt ( ) . Then, read another integer from input into birthYear using scnr
First, read an integer from input into birthMonth using scnrnextInt Then, read another integer from input into birthYear using scnrnextInt again. Finally, write print statements to output birthMonth, a slash, and birthYear. End with a newline.
The program will be tested with inputs and then with inputs
Ex: If the input is the output is:
Note:
The input values are provided by the program, so use scnrnextInt statements like birthmonth scnr nextInt; to read the input values.
System.out.println; ends the output with a newline. System.out.print; does not end the output with a newline.
Learn how our autograder works
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
