code: private static int getMonthDays(int month, int year) {
          Integer[] newMonths = getAdjustedMonthDays(year);
          return newMonths[month].intValue();
      }
docs: Returns month days from the beginning of year.
  
  @param month  month (0-based)
  @parma year  year
  @return month days from the beginning of year