Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. public int comparator(Spot a, Spot b) {
  2. if (a.getInitNumPossible() > b.getInitNumPossible()) {
  3. return 1;
  4. } else if (a.getInitNumPossible() < b.getInitNumPossible()) {
  5. return -1;
  6. }
  7. return 0;
  8. }
Add Comment
Please, Sign In to add comment