Question: Write two scnr . nextInt ( ) statements to read in the values birthDay and birthYear from input, respectively. Then, write a System.out.println ( )

Write two scnr.nextInt() statements to read in the values birthDay and birthYear from input, respectively. Then, write a System.out.println() statement to output the day, a period ("."), and the year.
Click here for examples
Ex 1: If the input is 21952, then the output is:
2.1952
Ex 2: If the input is 102015, then the output is:
10.2015

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!