Here you can find the source of min(double... nums)
public static double min(double... nums)
//package com.java2s; //License from project: Apache License public class Main { public static double min(double... nums) { if (nums.length == 0) { throw new IllegalArgumentException("Util.max() cannot be called with an empty array"); }/*from w w w . j av a 2 s. c om*/ double min = Integer.MAX_VALUE; for (final double num : nums) { min = Math.min(min, num); } return min; } }