public static double max(double[] values) {double max = Double.NEGATIVE_INFINITY;for (double value : values) {max = Math.max(max, value);}return max;}

public static double max ( double [ ] values ) { double max = Double . NEGATIVE_INFINITY ; for ( double value : values ) { max = Math . max ( max , value ) ; } return max ; }
public static double Max(double[] values){double max = double.NegativeInfinity;for (int i = 0, iSize = values.Length; i < iSize; i++){max = Math.Max(max, values[i]);}return max;}
