posted 19 years ago
BigInteger.valueOf(2) returns an BigInteger with the value 2. So, you declare two to be a BigInteger with the value 2.
Multiply() also returns the result of the operation, so you do
After this, myBigInt is a BigInteger with value 4, since you added it to itself, and 2 + 2 = 4.
Same goes for the other, such as BigInteger.multiply().