@ -120,4 +120,12 @@ public class Student {
}
public int calculateTotalCredits() {
int totalCredits = 0;
for (Course course : courseGrades.keySet()) {
totalCredits += course.getCourseCredits();
return totalCredits;