Here you can find the source of min(double[] array)
public static double min(double[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static double min(double[] array) { if (array.length == 0) throw new IllegalArgumentException("length cannot be 0."); double maxElement = Double.POSITIVE_INFINITY; for (double d : array) { if (d < maxElement) maxElement = d;// www.j ava2s. c o m } return maxElement; } }