How to use long data types in Java?

See the English answer > the literal XYZ of type int is out of range

It seems that I don't know how to use long data types correctly

Solution

long number = 600851475143L
long number = 600851475143L

Use "L" to make it long

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>