Here you can find the source of max(float[] t)
public static float max(float[] t)
//package com.java2s; //License from project: LGPL public class Main { public static float max(float[] t) { float maximum = 0; if (t.length != 0) { maximum = t[0]; // start with the first value for (int i = 1; i < t.length; i++) { if (t[i] > maximum) { maximum = t[i]; // new maximum }/*from w w w .j a va 2 s .c o m*/ } } return maximum; } }