src/edu/kit/informatik/calendar_sample/YearKind.java
/**
     * Returns the month the specified day of year belongs to.
     * 
     * @param  day the day
     * @return the month
     */
Returns the month the specified day of year belongs to.

@param  day the day
@return the month
Returns the month the specified day of year belongs to . @param day the day @return the month
public Month monthByDayOfYear(
            final int day) {
        if (!isValidDay(day))
            throw new IllegalArgumentException("Invalid day " + day + " for " + this);
        for (Month month = DECEMBER;; month = month.previousMonth()) {
            if (zerothDayOf(month) < day)
                return month;
        }
    }
public Month monthByDayOfYear ( final int day ) { if ( ! isValidDay ( day ) ) throw new IllegalArgumentException ( "Invalid day " + day + " for " + this ) ; for ( Month month = DECEMBER ; ; month = month . previousMonth ( ) ) { if ( zerothDayOf ( month ) < day ) return month ; } }
Returns the month the specified day of year belongs to.
Returns the month the specified day of year belongs to .
////