Given the following Java code:
/* Recursively search a[0: size – 1] for x.
size indicates a.length */
private static int goodSearch(int size) {
if (size < 0)
return -1;
if (x.equals(a[size – 1])
return (size – 1);
return goodSearch(size – 1);
}
How many comparisons between the array a and the variable x are made by the recursive method goodSearch()?
and explain that, please ~