I type:
private static final long myVariable = 0x0000000100000000;
Compiler says the number is too large! WTF?!?!
Try
private static final long myVariable = 0x0000000100000000L;
(note the "L" at the end.)
There's a thin line between genius and insanity - where's my eraser?
Try private static final long myVariable = 0x0000000100000000L; (note the "L" at the end.)
I knew you wouldn't let me down :D
There are currently 1 user and 18 guests online.
Joined: 2006-05-20