Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. Comparator<Student> comp = new Comparator<Student>(){
  2. @Override public int compare(Student s1, Student s2){
  3.         if (s1.punkty != s2.punkty) {
  4.                 if (s1.punkty < s2.punkty) return -1;
  5.                 else return 1;
  6.         }
  7.         else return s1.nazwisko.compareTo(s2.nazwisko);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement