Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,939 questions

51,876 answers

573 users

How to use BigInteger class in Java

1 Answer

0 votes
import java.math.BigInteger;

public class MyClass {
    public static void main(String args[]) {
        BigInteger a = new BigInteger("89370273867254003");
        BigInteger b = new BigInteger("3");
        BigInteger result = a.multiply(b); 
        
        System.out.println(result);
    }
}


/*

run:

268110821601762009

*/

 



answered Jul 25, 2019 by avibootz

Related questions

1 answer 115 views
115 views asked Mar 16, 2021 by avibootz
1 answer 115 views
115 views asked Nov 1, 2016 by avibootz
1 answer 167 views
1 answer 173 views
1 answer 161 views
1 answer 84 views
2 answers 92 views
92 views asked Jun 9, 2024 by avibootz
...