Here you can find the source of sumArray(double inputArray[])
public static double sumArray(double inputArray[])
//package com.java2s; // it under the terms of the GNU General Public License as published by public class Main { public static int i = 0; public static double sumArray(double inputArray[]) { double res = 0; for (int i = 0; i < inputArray.length; i++) { res += inputArray[i];//from w ww. j a v a2s . co m } return res; } }