import java.math.BigInteger; BigInteger num1 = new BigInteger("someNumber"); BigInteger num2 = new BigInteger("someNumber"); BigInteger result = num1.multiply(num);