Skip to main content

The strange problem with datatype long of java in eclipse! Please help me.

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
chanphat01001
Offline
Joined: 2012-04-08

As i know, the long has length is 64 bits, range from

AttachmentSize
Untitled.jpg52.67 KB

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
xylifyx
Offline
Joined: 2003-06-22

Even though assigned to a long, 9999999999 is still an integer literal. If you write 9999999999L instrad it should work.