The GregorianCalendar class describes a point in time, as measured by the Gregorian calendar, the standard calendar
Question:
The GregorianCalendar class describes a point in time, as measured by the Gregorian calendar, the standard calendar that is commonly used throughout the world today.
You construct a GregorianCalendar object from a year, month, and day of the month, like this:
Your task is to write a program that prints:
• The date and weekday that is 100 days from today.
• The weekday of your birthday.
• The date that is 10,000 days from your birthday.
Use the birthday of a computer scientist if you don’t want to reveal your own.
The GregorianCalendar class is complex, and it is a really good idea to write a few test programs to explore the API before tackling the whole problem. Start with a program that constructs today’s date, adds ten days, and prints out the day of the month and the weekday.
Step by Step Answer: