Here you can find the source of max(float... fs)
public static float max(float... fs)
//package com.java2s; public class Main { public static float max(float... fs) { float max = 0; if (fs.length > 0) { max = fs[0];// w w w .j a v a2s . c o m for (float f : fs) { if (f > max) { max = f; } } } return max; } public static double max(double... ds) { double max = 0; if (ds.length > 0) { max = ds[0]; for (double d : ds) { if (d > max) { max = d; } } } return max; } }