(T a, T b)
| 8 | |
| 9 | public class RoShamBo { |
| 10 | public static <T extends Competitor<T>> |
| 11 | void match(T a, T b) { |
| 12 | System.out.println( |
| 13 | a + " vs. " + b + ": " + a.compete(b)); |
| 14 | } |
| 15 | public static <T extends Enum<T> & Competitor<T>> |
| 16 | void play(Class<T> rsbClass, int size) { |
| 17 | for(int i = 0; i < size; i++) |