Instances of BigInteger are
objects, so regular numeric operators won't work. Instead, you call
methods, defined in the API...
http://java.sun.com/j2se/1.5.0/docs/api/java/math/BigInteger.html For example, to add existing BigInteger instances b1 and b2, then assign the result to b3, you could do the following...
BigInteger b3 = b1.add(b2);
Note that the sum is
returned by the method, which does not change the values of b1 or b2.
Also note that "1" is a special constant, so you don't need to create your own instance. You can simply use BigInteger.ONE.
[ February 18, 2005: Message edited by: marc weber ]