April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Implementando uma interface
public class Card implements Comparable {
...
  public int compareTo(Object otherObject) {
    Card other = (Card)otherObject;
    return myValue - other.myValue;
  }
}