I try to use following code to initialize a BigInteger at time of compiling (using breakpoint) in JAVA. So, I cannot use BigInteger x = new BigInteger(String str);
because this is at time of debug the code by breakpoint.
the code:
BigInteger x = BigInteger.valueOf(36894801013086644936129270378595901597221307673940538800722758616305130630160);
error:
The literal 36894801013086644936129270378595901597221307673940538800722758616305130630160 of type int is out of range.
If I use BigInteger x = new BigInteger(String str);
and then run the code, it will be OK, but I want to debug the code by some breakpoint and initialize BinInteger x (or change previous value of x) manually at time of debug.
The problem is that x keeps its previous value regardless to new value. apparently, only the "first initialization" value is kept. But, I want to change it to another value at time of debug, by a new value that is : 36894801013086644936129270378595901597221307673940538800722758616305130630160.
I appreciate any help.
In fact, I found a solution to do my test. I needed the value of BigInteger in another class that I changed the type of BigInteger to public static. So, I think now it would be better I delete my question.