code: private int getMonthLength(int year, int month) {
          int days = DAYS_IN_MONTH[month];
          if (month == FEBRUARY && isLeapYear(year)) {
              days++;
          }
          return days;
      }
docs: accepts 0 (December in the previous year) to 12.