語言

Integer.Max(Int32, Int32) 方法

定義

返回兩個 int 值中較大的一個,就像呼叫 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

參數

a
Int32

第一個運算元

b
Int32

第二個運算元

傳回

較大的 ab

屬性

備註

返回兩個 int 值中較大的一個,就像呼叫 Math#max(int, int) Math.max

新增於1.8版本。

Java 文件 java.lang.Integer.max(int, int)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於