Java Questions Regarding declaring a list of Comparable objects

Java Questions Regarding declaring a list of Comparable objects

It is a pretty simple one. I want to declare a list of objects, but I want
make sure all objects implemented the Comparable interface. What should I
do? I try to write
List<Comparable> heap = new ArrayList<Comparable>();
But compiler gives me a warning. What is the proper way to write it?
Thanks