Got to implement the method below for an assignment which it's subject is "WildCards", but don't know where to use wildcards in order to resolve the warning.
static <T extends Comparable> T findMax(T ... items)
{
T max = items[0];
for (T item : items)
if (item.compareTo(max) > 0)
max = item;
return max;
}
Any ideas ?
<T extends Comparable>
to<T extends Comparable<T>>