Skip to content

Commit

Permalink
GRAD2-2799: fixed the issue on GPA calculation due to the wrong order…
Browse files Browse the repository at this point in the history
… of student courses.

GRAD2-2799: fixed the issue on GPA calculation due to the wrong order of student courses.
  • Loading branch information
infstar committed Jul 24, 2024
1 parent acc2e70 commit 19246b5
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public RuleData fire() {
boolean isCompletedCourse1 = false;
boolean isCompletedCourse2 = false;

studentCourseList.sort(Comparator.comparing(StudentCourse::getCourseCode));

for (int i = 0; i < studentCourseList.size() - 1; i++) {
for (int j = i + 1; j < studentCourseList.size(); j++) {
if (studentCourseList.get(i).getCourseCode().equals(studentCourseList.get(j).getCourseCode())
Expand Down

0 comments on commit 19246b5

Please sign in to comment.