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 bigintegers 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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -