Java List Sum sumDouble(List list)

Here you can find the source of sumDouble(List list)

Description

sum Double

License

Open Source License

Declaration

public static double sumDouble(List<Double> list) 

Method Source Code

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

import java.util.List;

public class Main {
    public static double sumDouble(List<Double> list) {
        double sum = 0;
        for (Double i : list) {
            if (i != null)
                sum += i;/* ww w .  j  a v a2 s  .c  o  m*/
        }
        return sum;
    }
}

Related

  1. sum_ints(List list)
  2. sumAll(List list)
  3. sumAllColumnsOfMatrix(List> matrix)
  4. sumCreditList(List list)
  5. sumDifferences(List a, List b)
  6. sumInteger(List list)
  7. sumIntegers(List values)
  8. sumListItems(List list)
  9. sumLog(List Q)