Here you can find the source of max(List
public static double max(List<Double> a)
//package com.java2s; // under certain conditions; for more information please see LICENSE.txt import java.util.*; public class Main { public static double max(List<Double> a) { return Collections.max(a); }/*from w ww.ja va 2s.c o m*/ }