This content has been marked as final. Show 2 replies
It looks like you are writing a linear search version of the Collections.binarySearch.
You will note it has been declared
public static <T> int binarySearch(List<? extends Comparable<? super T>> list, T key)
Oops. Right you are. I changed it to *<? super T>* & it works. (Hides red face & slinks away)