Java Array Sum sumList(int[] paramList)

Here you can find the source of sumList(int[] paramList)

Description

sum List

License

Open Source License

Declaration

public static Integer sumList(int[] paramList) 

Method Source Code

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

public class Main {

    public static Integer sumList(int[] paramList) {
        if (paramList == null || paramList.length == 0)
            return 0;
        Integer sum = 0;/* w  w  w .j  a  v a  2s  .co  m*/
        for (Integer integer : paramList) {
            sum += integer;
        }
        return sum;
    }
}

Related

  1. sumElems(boolean[] inputRow)
  2. sumFast(final double... values)
  3. sumIntArray(int[] a)
  4. sumIntArray(int[] array)
  5. sumInts(int... numbers)
  6. sumLLL(double a[], double b[], int bBegin, int bEnd)
  7. sumLog(double[] logs)
  8. sumLog10(double[] log10values)
  9. sumLong(int[] array)