I am trying to run a JUnit test for my program, however I am getting error message like
*incompatible types
required: int[];
found: int *
Here is the code that shows the error
myQSArray = QS.quickSort(sortedArray2,0, sortedArray2.length - 1);
and here is my call for quickSort method
public static int quickSort( int A[], int p, int r){
int q;
if (p<r)
{
q = partition(A,p,r);
quickSort(A, p, q-1);
quickSort(A,q+1,r);
}
return QS1.quickSort(A, p, r);
}
Help Please, thanks in advance
partitionmethod - and the declaration ofsortedArray2from the method call where the error occurs - plus the declaration ofmsQSArray(THAT should beint)QSorQS1or are you really using to different classes that implement staticquicksortmethods.