Here you can find the source of maxIn(double[] array)
public static double maxIn(double[] array)
//package com.java2s; //License from project: Open Source License public class Main { public static double maxIn(double[] array) { double max = -Double.MAX_VALUE; for (double val : array) { max = max < val ? val : max; }/*w ww. jav a 2s .c om*/ return max; } }