133k views
1 vote
/** * Calculates the number of days in the specified month, while taking into

* consideration whether or not the specified month is in a leap year.
* Note: that this is calculated based on the month's monthOfYear and year, and
* is NOT retrieved from the month's getDayCount() method. This is because this
* method is used to generate the day objects that are stored within each month.
* @param month to determine the number of days within (within its year)
* @return the number of days in the specified month (between 28-31)
*/ public static int numberOfDaysInMonth(Month month)

1 Answer

2 votes

Answer:

febuary has 28 days and after a leap year it will have 29 days.

Step-by-step explanation:

User Eduardo Mauro
by
6.0k points