max

max(int: Integer): Integer;

The max method of the Integer primitive type returns the larger value of the receiver and the int parameter.

If the value of the receiver is greater than the value of the int parameter, the value of the receiver is returned. If the value of the receiver is less than or equal to the value of the int parameter, the value of int is returned.