src/edu/kit/informatik/calendar_sample/Month.java
/**
     * Returns the month with the specified index.
     * 
     * @param  index the index
     * @return the month
     * @throws IllegalArgumentException if {@code index} is not the index of a month
     */
Returns the month with the specified index.

@param  index the index
@return the month
@throws IllegalArgumentException if  index is not the index of a month
Returns the month with the specified index . @param index the index @return the month @throws IllegalArgumentException if index is not the index of a month
public static Month ofIndex(
            final int index) {
        assert MONTHS.length == 12;
        if (index < 1 || index > 12)
            throw new IllegalArgumentException("Invalid index " + index + " (expected [1,12])");
        return MONTHS[index - 1];
    }
public static Month ofIndex ( final int index ) { assert MONTHS . length == 12 ; if ( index < 1 || index > 12 ) throw new IllegalArgumentException ( "Invalid index " + index + " (expected [1,12])" ) ; return MONTHS [ index - 1 ] ; }
Returns the month with the specified index.
Returns the month with the specified index .
////