Java Array Sum sumLong(int[] array)

Here you can find the source of sumLong(int[] array)

Description

sum Long

License

Apache License

Declaration

public static long sumLong(int[] array) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static long sumLong(int[] array) {
        long sum = 0;
        for (int e : array) {
            sum += e;/*  ww  w .  ja  v a  2s .  c  om*/
        }
        return sum;
    }
}

Related

  1. sumInts(int... numbers)
  2. sumList(int[] paramList)
  3. sumLLL(double a[], double b[], int bBegin, int bEnd)
  4. sumLog(double[] logs)
  5. sumLog10(double[] log10values)
  6. summarizeIntegerArray(int[] numbers)
  7. summarizeNumbersAsString(int[] numbers)
  8. summation(double[] values)
  9. sumMaxK(double[] x, int k)