Here you can find the source of maxDblArrayValue(int npts, double[] dbls)
public static double maxDblArrayValue(int npts, double[] dbls)
//package com.java2s; public class Main { /**/*from ww w . jav a2 s .co m*/ * Returns max value of an array of doubles. */ public static double maxDblArrayValue(int npts, double[] dbls) { if (npts == 0) return 0.0; double max = dbls[0]; for (int i = 1; i < npts; i++) max = Math.max(max, dbls[i]); return max; } }