Fill in maxOf so that it returns the largest element. The bound <T extends Comparable<T>> is already written, so you may call compareTo — the > operator would not compile for T.
The program prints 9 and then pear — the same method for numbers and for words.