fix: correct student group comparator
This commit is contained in:
@@ -6,7 +6,7 @@ import java.util.Comparator;
|
||||
public class StudentGroupComparator implements Comparator<Student> {
|
||||
|
||||
@Override
|
||||
public String compare(Student s1, Student s2) {
|
||||
return Integer.compare(s1.getGroupNumber(), s2.getGroupNumber());
|
||||
public int compare(Student s1, Student s2) {
|
||||
return s1.getGroupNumber().compareTo(s2.getGroupNumber());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user