Share via


Integer.Max(Int32, Int32) Method

Definition

Returns the greater of two int values as if by calling Math#max(int, int) Math.max.

[Android.Runtime.Register("max", "(II)I", "", ApiSince=24)]
public static int Max (int a, int b);
[<Android.Runtime.Register("max", "(II)I", "", ApiSince=24)>]
static member Max : int * int -> int

Parameters

a
Int32

the first operand

b
Int32

the second operand

Returns

the greater of a and b

Attributes

Remarks

Returns the greater of two int values as if by calling Math#max(int, int) Math.max.

Added in 1.8.

Java documentation for java.lang.Integer.max(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to