Write a method called sumArray that accepts a reference to an array of doubles and returns the sum of the values stored in the array.
public class SumRecursive {
public static int sum(int[] arr, int size) {
if(size == 0) {
return 0;
} else {
return arr[size-1] + sum(arr, size-1);
}
}
public static void main(String[] args) {
int[] arr = {3, 9, 1, 6, 5};
System.out.println("Sum of all values in array is " + sum(arr, arr.length));
}
}

Write a method called sumArray that accepts a reference to an array of doubles and returns...