Here you can find the source of findMax(double[] arr)
public static double findMax(double[] arr)
//package com.java2s; //License from project: Apache License public class Main { public static double findMax(double[] arr) { double max = arr[0]; for (int i = 0; i < arr.length; i++) { if (max < arr[i]) { max = arr[i];/*from ww w. ja va 2 s . c om*/ } } return max; } }