Advertisement
ssunlimited

Untitled

Jun 27th, 2022
1,062
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.       System.out.println(compare(3, 4));
  7.    }
  8.    
  9.    @Override
  10.    public int compare(Integer o, Integer b){
  11.       return o-b;//maybe create class that uses this class.
  12.       }
  13.    
  14.    }
  15.  
  16.  
Advertisement
RAW Paste Data Copied
Advertisement