Here you can find the source of getMaxValue(List
public static double getMaxValue(List<Double> list)
//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; } }