I noticed that java will not allow me to store large numbers such as 2,000,000,000, i.e. 2 billion, obviously, of an integer type, but if I have the int largeHex = 0x77359400corresponding hexadecimal value, that is int largeHex = 0x77359400; it is perfectly,
Thus, my program will need to increase to 2 ^ 32, a little over 4.2 billion, I checked the hex key 0xffffffffand it allows me to store as an int type in this form,
My problem is that I have to pull the HEX line from the program.
example
sT = "ffffffff";
int hexSt = Integer.valueOf(sT, 16).intValue();
this only works for smaller integer values
I get an error
Exception in thread "main" java.lang.NumberFormatException: For input string: "ffffffff"
All I have to do is have this value in an integer variable like
int largeHex = 0xffffffff
which works great?
, .