Java Array Sum sumIntArray(int[] a)

Here you can find the source of sumIntArray(int[] a)

Description

sum Int Array

License

Open Source License

Declaration

public static long sumIntArray(int[] a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static long sumIntArray(int[] a) {
        int sum = 0;
        for (int i : a) {
            sum += i;//  w w w.j a  va  2  s.c  o  m
        }
        return sum;
    }
}

Related

  1. sumDoubleArray(double[] double_array)
  2. sumDoubles(Double[] ds)
  3. sumEachFigureFactor(int[] numbers)
  4. sumElems(boolean[] inputRow)
  5. sumFast(final double... values)
  6. sumIntArray(int[] array)
  7. sumInts(int... numbers)
  8. sumList(int[] paramList)
  9. sumLLL(double a[], double b[], int bBegin, int bEnd)