Here you can find the source of maxFromDoubleArray(double[] arr)
public static double maxFromDoubleArray(double[] arr)
//package com.java2s; public class Main { public static double maxFromDoubleArray(double[] arr) { double max = Double.NEGATIVE_INFINITY; for (double d : arr) { if (d > max) max = d;/*from w w w. j ava 2 s.co m*/ } return max; } }