Here you can find the source of minValue(double[] from)
public static double minValue(double[] from)
//package com.java2s; //License from project: Apache License public class Main { public static double minValue(double[] from) { double result = from[0]; for (int i = 1; i < from.length; ++i) if (from[i] < result) result = from[i];/*from w w w . j a v a 2 s .co m*/ return result; } public static float minValue(float[] from) { float result = from[0]; for (int i = 1; i < from.length; ++i) if (from[i] < result) result = from[i]; return result; } public static long minValue(long[] from) { long result = from[0]; for (int i = 1; i < from.length; ++i) if (from[i] < result) result = from[i]; return result; } }