Java List Max getMaxValue(List list)

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

Description

get Max Value

License

Apache License

Declaration

public static double getMaxValue(List<Double> list) 

Method Source Code

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

import java.util.List;

public class Main {
    public static double getMaxValue(List<Double> list) {
        double maxValue = 0;
        if (list == null)
            return 0;
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i) == null)
                continue;
            double d = list.get(i);
            if (maxValue < d)
                maxValue = d;// w  w w  .  j  a v a  2s.  co m
        }
        return maxValue;
    }
}

Related

  1. getMaxOf(final List list)
  2. getMaxOfAList(List list)
  3. getMaxSize(final List list)
  4. getMaxStrWidth(List list)
  5. getMaxValIndex(List vals)
  6. getMaxValue(List values)
  7. max(final List aList, final Double aDefalut)
  8. max(List values)
  9. max(List a, List b)