Question: Write an application that prompts a user for a month, day, and year. Then display the appropriate message: Y is not this year M was
Write an application that prompts a user for a month, day, and year. Then display the appropriate message:
- Y is not this year
- M was a month earlier this year
- M is a month later this year
- M is this month
Given code:
import java.util.*;
import java.time.*;
public class PastPresentFuture {
public static void main (String args[]) {
// Write your code here
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
