go to previous page   go to home page  

Answer:

  public int compareTo( Monster other )
  {
    int hitDifference = getHitPoints()-other.getHitPoints();
    
    if ( hitDifference != 0 )
      return hitDifference;     
    else
      return getStrength()-other.getStrength();
      
  }

End of Chapter

You have reached the end of the chapter. You may wish to search this list for something that interests you.


go to previous page   go to home page