daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 25th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. package javaapplicationmaps;
  3.  
  4. import java.util.Comparator;
  5.  
  6. /**
  7.  *
  8.  * @author iucosoftmain
  9.  */
  10. class OrasComparators {
  11.  
  12.    
  13.     public static Comparator<Oras> getDenumireCompartor(){
  14.         return new Comparator<Oras>() {
  15.             @Override
  16.             public int compare(Oras o1, Oras o2) {
  17.  
  18.                  return new Integer(o1.getPopulatie()).compareTo(o2.getPopulatie());
  19.             }
  20.         };
  21.        
  22.     }
  23.    
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top