Programming Tips - Java: Comparable is a raw type. References to generic type ComparableT should be parameterized

Date: 2018sep21 Language: Java Q. Java: Comparable is a raw type. References to generic type Comparable<T> should be parameterized What does this warning mean? A. If you have
Collections.sort(myarray);
This probably because you should change:
class MyClass implements Comparable { ... }
to
class MyClass implements Comparable<MyClass> { ... }