Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int comparator(Spot a, Spot b) {
- if (a.getInitNumPossible() > b.getInitNumPossible()) {
- return 1;
- } else if (a.getInitNumPossible() < b.getInitNumPossible()) {
- return -1;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment