src/edu/kit/informatik/campusmanagement/Lecture.java
/**
     * Adds a grade.
     * 
     * @param  student the student to add the grade for
     * @param  grade the grade
     * @throws IllegalStateException if the grade is already set
     */
Adds a grade.

@param  student the student to add the grade for
@param  grade the grade
@throws IllegalStateException if the grade is already set
Adds a grade . @param student the student to add the grade for @param grade the grade @throws IllegalStateException if the grade is already set
void addGrade(
            final Student student,
            final Grade grade) {
        if (grades.putIfAbsent(student, grade) != null)
            throw new IllegalStateException("Grade already set");
        student.add(this);
    }
void addGrade ( final Student student , final Grade grade ) { if ( grades . putIfAbsent ( student , grade ) != null ) throw new IllegalStateException ( "Grade already set" ) ; student . add ( this ) ; }
Adds a grade.
Adds a grade .
////