Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Maximum value of an Integer

807597Jun 19 2005 — edited Jun 23 2005
Hi all !

I have a simple question. How can I deal with an Integer number major than Integer.MAX_VALUE?

I retrieve from db an hexadecimal String of 32 charachters and I should have to increment it in this way:
String retrievedFromDB;
Integer.toString( Integer.parseInt (retirevedFromDB, 16) +1, 16)
But if the String value is major than MAX_VALUE?
How can I resolve? Any help is appreciated.
Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2005
Added on Jun 19 2005
7 comments
447 views