-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
  • 135
  • 11

1 Answers1

1

Just remove the leading 0:

Long checkRandom=101010101l
Christian Ammann
  • 838
  • 7
  • 19