How do I sum up all the values in the array and returns the total from a method
double[] dvals = { 88.94, 77.56, -7.0, -203.09 }; // initialize array
double[] dvals2 = new double[8];
System.out.printf("Output of sumAll for dvals : %9.3f\n", sumAll(dvals));
System.out.printf("Output of sumAll for dvals2: %9.3f\n\n", sumAll(dvals2));