Here you can find the source of arrayMin(double[] x)
public static double arrayMin(double[] x)
//package com.java2s; //License from project: Open Source License public class Main { public static double arrayMin(double[] x) { if (x.length == 0) { throw new IllegalArgumentException(); }/*w w w. ja v a 2 s . c om*/ double result = x[0]; for (int i = 1; i < x.length; i++) { if (result > x[i]) { result = x[i]; } } return result; } }