I have a program that I\'m trying to make for class that returns the sum of all the integers in an array using recursion. Here is my program thus far:
public
The issue is that a[n-1] is an int, whereas sumOfArray expects an array of int.
a[n-1]
int
sumOfArray
Hint: you can simplify things by making sumOfArray take the array and the starting (or ending) index.