src/edu/kit/informatik/campusmanagement/CampusManagement.java
/**
     * Adds a professor with the specified name and chair.
     * 
     * @param  forename the forename
     * @param  surname the surname
     * @param  chair the chair
     * @throws NullPointerException if any argument is {@code null}
     * @throws IllegalStateException if the professor was already added
     */
Adds a professor with the specified name and chair.


Adds a professor with the specified name and chair .
public void addProfessor(
            final String forename,
            final String surname,
            final String chair) {
        Objects.requireNonNull(forename);
        Objects.requireNonNull(surname);
        Objects.requireNonNull(chair);
        final Professor professor = new Professor(forename, surname, chair);
        if (professors.putIfAbsent(professor, professor) != null)
            throw new IllegalStateException("Professor already added");
    }
public void addProfessor ( final String forename , final String surname , final String chair ) { Objects . requireNonNull ( forename ) ; Objects . requireNonNull ( surname ) ; Objects . requireNonNull ( chair ) ; final Professor professor = new Professor ( forename , surname , chair ) ; if ( professors . putIfAbsent ( professor , professor ) != null ) throw new IllegalStateException ( "Professor already added" ) ; }
Adds a professor with the specified name and chair.
Adds a professor with the specified name and chair .
////