I have this so far, I just need it to start at any index value given by a parameter, how would I add this.
public static int maxElement(int[] a, int i){
if (i > 0) {
return Math.max(a[i], maxElement(a, i-1));
}
else {
return a[0];
}
}