private static final int monthLength(int year,int month){
  return MONTH_LENGTH[month + (isLeapYear(year) ? 12 : 0)];
}

private static final int monthLength ( int year , int month ) { return MONTH_LENGTH [ month + ( isLeapYear ( year ) ? 12 : 0 ) ] ; }
return the number of days in the given month .
