SHARE
TWEET

Untitled

a guest Feb 17th, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public int compareTo(Student to) {
  2.         if (this.getCgpa() != to.getCgpa()) {
  3.             return (new Double(to.getCgpa())).compareTo(this.getCgpa());
  4.         }
  5.         if (this.getFname() != to.getFname()) {
  6.             return this.getFname().compareTo(to.getFname());
  7.         }
  8.         return (new Integer(this.getId())).compareTo(to.getId());
  9.     }
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