Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.math.BigInteger;

public class Main {
    public static void main(String[] argv) throws Exception {
        // Create via a string
        BigInteger bi1 = new BigInteger("1234567890123456890");

        // Create via a long
        BigInteger bi2 = BigInteger.valueOf(123L);

        bi1 = bi1.add(bi2);

    }
}