Here you can find the source of sumArray(double[] array)
public static double sumArray(double[] array)
//package com.java2s; //License from project: LGPL public class Main { public static double sumArray(double[] array) { double sum = 0.0; for (int k = 0; k < array.length; k++) sum += array[k];//w ww .j a v a2 s. co m return sum; } }