Question: Write a method called inputBirthday that accepts a Scanner for the console as a parameter and prompts the user to enter a month, day, and

Write a method called inputBirthday that accepts a Scanner for the console as a parameter and prompts the user to enter a month, day, and year of birth, then prints the birthdate in a suitable format. Here is an example dialogue with the user:

On what day of the month were you born? 8

What is the name of the month in which you were born? May

During what year were you born? 1981

You were born on May 8, 1981. You’re mighty old!

Step by Step Solution

3.27 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

public static void inputBirthday Scanner input SystemoutprintOn what day ... View full answer

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 Building Java Programs A Back to Basics Approach Questions!