Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Comparator<Student> comp = new Comparator<Student>(){
- @Override public int compare(Student s1, Student s2){
- if (s1.punkty != s2.punkty) {
- if (s1.punkty < s2.punkty) return -1;
- else return 1;
- }
- else return s1.nazwisko.equals(s2.nazwisko);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement