Question: create an application that prompts a user for a month, day, and year. Display a message that specifies whether the entered date is not this
- create an application that prompts a user for a month, day, and year. Display a message that specifies whether the entered date is
- not this year,
- in an earlier month this year,
- in a later month this year, or
- this month. Save the file asPastPresentFuture.java.
- Use the web to learn how to use theLocalDateBoolean methodsisBefore(),isAfter(), andequals(). Use your knowledge to create a program that prompts a user for a month, day, and year, and then displays a message specifying whether the entered day is in the past, the current date, or in the future. Save the file asPastPresentFuture2.java.
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
