I have a modified quick sort method:
public void quickSortModified(ArrayList<Comparable> vetor, int begin, int end)
And I try to call it using the following code:
ArrayList <Double> variables = new ArrayList <Double>();
quickSortModified(variables, 0 , variables.size());
And Java returns me the error:
Incompatible types: ArrayList <Double> cannot be converted to ArrayList <Comparable>
If Double implements Comparable, why this code does not work?