Here you can find the source of ArraySum(float[] a)
public static float ArraySum(float[] a)
//package com.java2s; //License from project: Open Source License public class Main { public static float ArraySum(float[] a) { float sum = 0.0f; for (float aa : a) { sum += aa;/*from www.j a v a 2s .com*/ } return sum; } public static long ArraySum(long[] a) { long sum = 0; for (long aa : a) { sum += aa; } return sum; } public static int ArraySum(int[] a) { int sum = 0; for (int aa : a) { sum += aa; } return sum; } }