public static double max (double a, double b)

Returns the greater of two double values as if by calling Math.max.

Parameters:
a    the first operand
b    the second operand

Returns:  the greater of a and b

See also:
java.util.function.BinaryOperator

Since:  1.8