Here you can find the source of minElement(int[] array)
public static int minElement(int[] array)
//package com.java2s; //License from project: Apache License public class Main { public static int minElement(int[] array) { int result = Integer.MAX_VALUE; for (int element : array) result = Math.min(result, element); return result; }/*from w w w .j a v a2 s. com*/ public static double min(double[] array) { double result = Double.MAX_VALUE; for (double element : array) result = Math.min(result, element); return result; } }