I am running this code where the number may turn out to be too large to be an integer.
I define this number:
long num = 0L;
at the very beginning, but still, when it gets too big, for example 99999999991, it cannot be so big, it would be something like 1410065408.
My question is, how can I tell the java compiler that this number can get too large, just make it long during calculation?
Thanks in advance!
source
share