-1

i have declared Long checkRandom=0101010101l; but when I am printing checkRandom it printed checkRandom==17043521 what was the reason its taking checkRandom=17043521 not checkRandom=0101010101

vaibhav patil
  • 143
  • 11

1 Answers1

1

Just remove the leading 0:

Long checkRandom=101010101l
Christian Ammann
  • 888
  • 8
  • 19