src/edu/kit/informatik/campusmanagement/Module.java
/**
     * Adds a lecture to the module.
     * 
     * @param  lecture the lecture to add
     * @throws IllegalStateException if the lecture would push the count of points over {@code 45}
     */
Adds a lecture to the module.

@param  lecture the lecture to add
@throws IllegalStateException if the lecture would push the count of points over  45
Adds a lecture to the module . @param lecture the lecture to add @throws IllegalStateException if the lecture would push the count of points over 45
void addLecture(
            final Lecture lecture) {
        if (lecture.module() != this)
            throw new IllegalArgumentException("Lecture does not belong to this module");
        if (credits() + lecture.credits() > UPPER_BOUND)
            throw new IllegalStateException("Total credit points over " + UPPER_BOUND);
        lectures.add(lecture);
    }
void addLecture ( final Lecture lecture ) { if ( lecture . module ( ) != this ) throw new IllegalArgumentException ( "Lecture does not belong to this module" ) ; if ( credits ( ) + lecture . credits ( ) > UPPER_BOUND ) throw new IllegalStateException ( "Total credit points over " + UPPER_BOUND ) ; lectures . add ( lecture ) ; }
Adds a lecture to the module.
Adds a lecture to the module .
////