Here you can find the source of minimum(double[] list)
public static double minimum(double[] list)
//package com.java2s; //License from project: Open Source License public class Main { public static double minimum(double[] list) { double min = list[0]; for (int i = 1; i < list.length; ++i) if (list[i] < min) min = list[i];// w w w. j a v a 2 s.c o m return min; } public static int minimum(int[] list) { int min = list[0]; for (int i = 1; i < list.length; ++i) if (list[i] < min) min = list[i]; return min; } }