Question: Java Assignment Using Java Date and Time libraries, create a new class called CalendarHelper. This class should do the following: Create a list of five

Java Assignment

Using Java Date and Time libraries, create a new class called CalendarHelper.

This class should do the following:

  1. Create a list of five dates that are holidays (ex: December 25)
  2. Ask the user for their birthday and add it to this list
  3. Print the current date
  4. Display the days remaining until all holidays in the list (ex: if the current day is December 10, there are 15 days remaining until Christmas)
  5. Alert the user which holiday is coming soonest

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!