Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

4b and the integer limit

 
Steven Lacher
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My issue is that this all works fine - except for numbers over the 2,147,483,647 ceiling, which throw an error.

I'd like to use longs instead, but I'm not quite sure how to do it, and have the array-element selecting code still work.
 
Brian Holsenbeck
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm currently on this, and being nitpicked. Take a look at the Long wrapper class - you can handle the numbers we are dealing with using that.
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you familiar with casting?

That would take care of the array problem you are having, I think.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic