相关疑难解决方法(0)

Java类Long - 方法longValue()

为什么java类Long有一个方法longValue()?那有什么用?java doc说

the numeric value represented by this object after conversion to type long.
Run Code Online (Sandbox Code Playgroud)

我需要这个吗?对于任何长值,以下第一个代码是否与第二个代码不同?

//Is there a value where this myLong value contains other...
Long l = new Long("...");
long myLong = l;

//...than this one?
Long l = new Long("...");
long myLong = l.longValue();
Run Code Online (Sandbox Code Playgroud)

java long-integer

2
推荐指数
1
解决办法
3946
查看次数

标签 统计

java ×1

long-integer ×1