refactor: change groupNumber type from int to String in StudentGroupComparator
This commit is contained in:
@@ -5,7 +5,7 @@ import java.util.Comparator;
|
|||||||
public class StudentGroupComparator implements Comparator<Student> {
|
public class StudentGroupComparator implements Comparator<Student> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compare(Student s1, Student s2) {
|
public String compare(Student s1, Student s2) {
|
||||||
return Integer.compare(s1.getGroupNumber(), s2.getGroupNumber());
|
return Integer.compare(s1.getGroupNumber(), s2.getGroupNumber());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user