private static int daysInMonth ( int year , int month ) { assert month >= FIRST_MONTH && month <= LAST_MONTH ; int d = DAYS_IN_MONTH [ month - 1 ] ; if ( month == FEBRUARY && isLeapYear ( year ) ) d ++ ; return d ; }
Find the number of days in the given month given the year .