Possible duplicate:
09 not recognized, where recognized 9
Just wondering when I declare the following:
public static final long __VERSIONCODE = 0L; public static final long __VERSIONCODE = 9L;
which will work, but whenever I try to do this:
public static final long __VERSIONCODE = 09L; public static final long __VERSIONCODE = 08235L;
I get an error (in eclipse):
"Type 09L type long is out of range.
So I thought it happened because it started from scratch.
but then I tried the second digit below eight:
public static final long __VERSIONCODE = 07235L;
which does not give me errors.
then
public static final long __VERSIONCODE = 07239L;
also causes an error.
So I really donโt understand what values โโI can assign to a long one, but I canโt. Why am I getting these errors? (Actually, I'm just wondering, I can just use String for my version code).
Also, I forgot to mention that it behaves exactly the same, using doubles instead of longs.
source share