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:

  1. Y is not this year
  2. M was a month earlier this year
  3. M is a month later this year
  4. 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

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!