src/edu/kit/informatik/campusmanagement/CampusManagement.java
/**
     * Adds a student with the specified name and student number.
     * 
     * @param  forename the forename
     * @param  surname the surname
     * @param  studentnumber the student number
     * @throws NullPointerException if any argument is {@code null}
     * @throws IllegalStateException if a student with this student number already exists
     */
Adds a student with the specified name and student number.


Adds a student with the specified name and student number .
public void addStudent(
            final String forename,
            final String surname,
            final int studentnumber) {
        Objects.requireNonNull(forename);
        Objects.requireNonNull(surname);
        final Student student = new Student(forename, surname, studentnumber);
        if (students.putIfAbsent(student, student) != null)
            throw new IllegalStateException("Student number in use");
    }
public void addStudent ( final String forename , final String surname , final int studentnumber ) { Objects . requireNonNull ( forename ) ; Objects . requireNonNull ( surname ) ; final Student student = new Student ( forename , surname , studentnumber ) ; if ( students . putIfAbsent ( student , student ) != null ) throw new IllegalStateException ( "Student number in use" ) ; }
Adds a student with the specified name and student number.
Adds a student with the specified name and student number .
////