I\'m trying to write a generic max function that takes two Comparables.
Comparable
So far I have
public static &g
You get this error because Comparable> basically says that it is comparable to something without any specifics. You should write Comparable instead, so the compiler would know that type T is comparable to itself.
Comparable>