public float max ( float ... values ) { float max = Float . MIN_VALUE ; for ( int i = 0 ; i < values . length ; i ++ ) { if ( i == 0 || values [ i ] > max ) { max = values [ i ] ; } } return max ; }
Get the greatest of the set of float values .