Java AtomicInteger longValue() 方法

2025年3月20日 | 阅读时长1分钟

Java AtomicInteger 类的 longValue() 方法返回给定 atomicinteger 的 long 值。

语法

返回

此方法将 atomic Integer 值作为 long 值返回。

示例 1

输出

the  long value is: 1000

示例 2

输出

the long value is: 1222

示例 3

输出

the  long value is: 1024

示例 4

输出

the  long value is: 1097

示例 5

输出

the  new number is: 4535
 
下一主题Java AtomicInteger