src/edu/kit/informatik/campusmanagement/CampusManagement.java
/**
     * Adds a lecture with the specified arguments.
     * 
     * @param  name the name of the lecture
     * @param  module the module the lecture belongs to
     * @param  professor the professor
     * @param  credits the credits of the lecture
     * @throws NullPointerException if any argument is {@code null}
     * @throws IllegalArgumentException if the credit count is invalid, or if the module or professor does not exist
     * @throws IllegalStateException if the lecture cannot be added to the module
     */
Adds a lecture with the specified arguments.


Adds a lecture with the specified arguments .
public void addLecture(
            final String name,
            final Module module,
            final Professor professor,
            final int credits) {
        Objects.requireNonNull(name);
        Objects.requireNonNull(professor);
        elements.add(new Lecture(nextId(), name, module, credits, professor));
    }
public void addLecture ( final String name , final Module module , final Professor professor , final int credits ) { Objects . requireNonNull ( name ) ; Objects . requireNonNull ( professor ) ; elements . add ( new Lecture ( nextId ( ) , name , module , credits , professor ) ) ; }
Adds a lecture with the specified arguments.
Adds a lecture with the specified arguments .
////