src/edu/kit/informatik/calendar_sample/Month.java
/**
     * Returns how many days the month has.
     * 
     * <p>The argument {@code isLeap} has no effect unless {@code this} is {@linkplain #FEBRUARY}.
     * 
     * @param  isLeap whether to return the days for a leap year
     * @return the count of days in the month
     */
Returns how many days the month has.

The argument  isLeap has no effect unless  this is  #FEBRUARY.

@param  isLeap whether to return the days for a leap year
@return the count of days in the month
Returns how many days the month has . The argument isLeap has no effect unless this is #FEBRUARY . @param isLeap whether to return the days for a leap year @return the count of days in the month
private int days(
            final boolean isLeap) {
        switch (this) {
            case JANUARY:
            case MARCH:
            case MAY:
            case JULY:
            case AUGUST:
            case OCTOBER:
            case DECEMBER:
                return 31;
            case APRIL:
            case JUNE:
            case SEPTEMBER:
            case NOVEMBER:
                return 30;
            case FEBRUARY:
                return isLeap ? 29 : 28;
            default:
                throw new AssertionError("unreachable");
        }
    }
private int days ( final boolean isLeap ) { switch ( this ) { case JANUARY : case MARCH : case MAY : case JULY : case AUGUST : case OCTOBER : case DECEMBER : return 31 ; case APRIL : case JUNE : case SEPTEMBER : case NOVEMBER : return 30 ; case FEBRUARY : return isLeap ? 29 : 28 ; default : throw new AssertionError ( "unreachable" ) ; } }
Returns how many days the month has.
Returns how many days the month has .
////