Sorting and Algorithm Analysis - Harvard University

If we want to be able to use Arrays.sort(...) or Collections.sort(...) on an array or an ArrayList, the class has to implement the Comparable ... method. 3.1.2 Linear Search in Arrays of Objects If we are searching for an element in an unsorted array of objects (not primitive type variables), then we can no longer use == operator ... ................
................