Here you can find the source of maximumDouble(double... values)
public static double maximumDouble(double... values)
//package com.java2s; //License from project: Apache License public class Main { public static double maximumDouble(double... values) { double ret = values[0]; for (int i = 1; i < values.length; i++) { ret = Math.max(ret, values[i]); }/*from ww w .j av a2 s. com*/ return ret; } }