Here you can find the source of min(int[] array)
public static double min(int[] array)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { public static double min(int[] array) { int min = Integer.MAX_VALUE; for (int a : array) { if (a < min) { min = a;//from www.jav a2 s . c o m } } return min; } public static double min(ArrayList<Double> array) { double min = Double.MAX_VALUE; for (double a : array) { if (a < min) { min = a; } } return min; } public static double min(double[] array) { double min = Double.MAX_VALUE; for (double a : array) { if (a < min) { min = a; } } return min; } }