Feat(main): Create profile\
This commit is contained in:
parent
6b11635544
commit
e4fed111a0
@ -0,0 +1,10 @@
|
|||||||
|
package com.example.coen390_assignment2.Models;
|
||||||
|
|
||||||
|
import java.util.Comparator;
|
||||||
|
|
||||||
|
public class StudentProfileSurnameComparator implements Comparator<StudentProfile> {
|
||||||
|
@Override
|
||||||
|
public int compare(StudentProfile profile1, StudentProfile profile2) {
|
||||||
|
return profile1.getSurname().compareTo(profile2.getSurname());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user