News
The compareTo method should compare those same instance variables, in that exact order. This makes the number highest precedence for ordering, name next highest precedence, HP next highest, and so on.
An object that implements the Comparable interface must call the "implements" keyword first, and then the "compareTo" method must be defined in the Comparable class.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results