Here you can find the source of min(double[] values)
public static double min(double[] values)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static double min(double[] values) { Arrays.sort(values);/* www . j a va 2 s. co m*/ return minOfSortedValues(values); } public static double minOfSortedValues(double[] sortedValues) { return sortedValues[0]; } }