I was wondering if there was any way to convert a variable of type Integer, to BigInteger. I tried typecasting the Integer variable, but i get an error that says inconvertible type.
This question is related to
java
biginteger
You can do in this way:
Integer i = 1;
new BigInteger("" + i);
Source: Stackoverflow.com