Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class SortCompare implements Comparator<Integer>{
- int a = 3;
- public static void main(String[] args) {
- System.out.println(equals(3));
- }
- @Override
- public int compare(Integer o, Integer b){
- return o-b;//maybe create class that uses this class.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement