src/edu/kit/informatik/calendar_sample/Date.java
/**
     * Returns a date for the specified arguments.
     * 
     * <p>This method handles any count of exceeding days and months gracefully. Note that exceeding months are handled
     * prior exceeding days are handled.
     * 
     * @param  year the year
     * @param  month the month
     * @param  day the day
     * @return the date
     */
Returns a date for the specified arguments.

This method handles any count of exceeding days and months gracefully. Note that exceeding months are handled
prior exceeding days are handled.

@param  year the year
@param  month the month
@param  day the day
@return the date
Returns a date for the specified arguments . This method handles any count of exceeding days and months gracefully . Note that exceeding months are handled prior exceeding days are handled . @param year the year @param month the month @param day the day @return the date
private static Date resolveDate(
            final int year,
            final int month,
            final int day) {
        final int nMonth = DateUtil.mod(month - 1, 12) + 1;
        final int nYear  = year + (month - nMonth) / 12;
        return isValid(nYear, nMonth, day)
                ? new Date(nYear, nMonth, day)
                : ofDayOfYear(nYear, dayOfYear(nYear, nMonth, day));
    }
private static Date resolveDate ( final int year , final int month , final int day ) { final int nMonth = DateUtil . mod ( month - 1 , 12 ) + 1 ; final int nYear = year + ( month - nMonth ) / 12 ; return isValid ( nYear , nMonth , day ) ? new Date ( nYear , nMonth , day ) : ofDayOfYear ( nYear , dayOfYear ( nYear , nMonth , day ) ) ; }
Returns a date for the specified arguments.
Returns a date for the specified arguments .
////