Here you can find the source of Min(final double[] input)
public static double Min(final double[] input)
//package com.java2s; /*/*from w w w . j ava2s.co m*/ * This is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute * it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by * Sam Hocevar. See http://www.wtfpl.net/ for more details. */ public class Main { public static double Min(final double[] input) { if (input == null || input.length < 1) { return 0; } double output = input[0]; for (int i = 1; i < input.length; i++) { if (input[i] < output) { output = input[i]; } } return output; } }