Multiply one BigInteger to another BigInteger


import java.math.BigInteger;

public class Main {
  public static void main(String[] argv) throws Exception {
    BigInteger bi1 = new BigInteger("1234567890123456890");
    BigInteger bi2 = BigInteger.valueOf(123L);

    bi1 = bi1.multiply(bi2);

    System.out.println(bi1);
  }
}

Output:


151851850485185197470
Home 
  Java Book 
    Runnable examples  

BigInteger:
  1. Create BigInteger from byte array
  2. Create BigInteger from string and long
  3. Convert BigInteger to byte array
  4. Convert BigInteger into binary string
  5. Convert BigInteger to specified radix
  6. Convert BigInteger to hexadecimal integer
  7. Convert BigInteger to integer
  8. Convert BigInteger to octal string
  9. Convert binary string to BigInteger
  10. Convert octal string to BigInteger
  11. Convert hexadecimal string to BigInteger
  12. Divide one BigInteger from another BigInteger
  13. Multiply one BigInteger to another BigInteger
  14. Negate a BigInteger
  15. Power a BigInteger
  16. Subtract one BigInteger from another BigInteger
  17. Is BigInteger Probable Prime
  18. Is a BigInteger Even
  19. Bit clear on BigInteger
  20. Bit flip on BigInteger
  21. Bit set on BigInteger
  22. Bit shift left on BigInteger
  23. Bit shift right on BigInteger
  24. Bit Test on BigInteger
  25. XOR a BigInteger from another BigInteger
  26. And operation on BigInteger
  27. Not operation on BigInteger
  28. Or operation on BigInteger
  29. andNot operation on BigInteger