src/edu/kit/informatik/calendar/Month.java
/**
     * Returns the month with the specified index.
     * 
     * <p>The specified index has to be between the {@linkplain #toIndex() index} of  {@linkplain #JANUARY} and
     * {@linkplain #DECEMBER} (inclusive).
     * 
     * @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.

The specified index has to be between the  #toIndex() index of   #JANUARY and
#DECEMBER (inclusive).

@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 . The specified index has to be between the #toIndex () index of #JANUARY and #DECEMBER ( inclusive ) . @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) {
        if (index < 1 || index > MONTHS.length)
            throw new IllegalArgumentException("Bad index " + index);
        return MONTHS[index - 1];
    }
public static Month ofIndex ( final int index ) { if ( index < 1 || index > MONTHS . length ) throw new IllegalArgumentException ( "Bad index " + index ) ; return MONTHS [ index - 1 ] ; }
Returns the month with the specified index.
Returns the month with the specified index .