Long类intValue()方法

文档地址 https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html#intValue--

intValue

public int intValue()

Returns the value of this Long as an int after a narrowing primitive conversion.

Specified by:
intValue in class Number

Returns:
the numeric value represented by this object after conversion to type int

posted @ 2025-04-13 20:13  kuki'  阅读(17)  评论(0)    收藏  举报