Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. public int compareTo(Time that){ //Simple Sort Algorithm
  2. if(this.getHour() < that.getHour())
  3. return -1;
  4. else if(this.getHour() > that.getHour())
  5. return 1;
  6. else return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement