How to use long data type in Java? -


this question has answer here:

i have use quite big number - 600851475143; know, have use long data type when try initialize like: long number = 600851475143 error:

the literal 600851475143 of type int out of range.

it seems don't know how use long data type correctly.

long number = 600851475143l 

use "l" make long type


Comments