Advertisement
ssunlimited

Untitled

Jun 27th, 2022
997
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied
Advertisement