ssunlimited

Untitled

Jun 27th, 2022
1,272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class SortCompare implements Comparator<Integer>{
  4.    int a = 3;
  5.    public static void main(String[] args) {
  6.      
  7.       System.out.println(equals(3));
  8.    }
  9.    
  10.    @Override
  11.    public int compare(Integer o, Integer b){
  12.       return o-b;//maybe create class that uses this class.
  13.       }
  14.    
  15.    }
  16.  
  17.  
Advertisement
Add Comment
Please, Sign In to add comment