Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { // assign values to bi1, bi2 BigInteger bi1 = new BigInteger("123"); BigInteger bi2 = new BigInteger("987654321"); // assign the integer values of bi1, bi2 to i1, i2 Integer i1 = bi1.intValue(); Integer i2 = bi2.intValue(); System.out.println(i1); System.out.println(i2); } }