java - Using BigInteger Multiply operator -
i wondering if there way multiply biginteger
variables together, because *
operator cannot applied biginteger
.
so wondering if possible multiply 2 bigintegers
without using *
operator.
you use biginteger
s multiply()
method so:
biginteger int1 = new biginteger("131224324234234234234313"); biginteger int2 = new biginteger("13345663456346435648234313"); biginteger result = int1.multiply(int2)
i should have pointed out while ago biginteger
immutable. result of operation has stored variable. operator or operand never changed.
Comments
Post a Comment