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[] args) {

        // assign values to bi1, bi2
        BigInteger bi1 = new BigInteger("12345");
        BigInteger bi2 = new BigInteger("987654321");

        // assign the hashcode of bi1, bi2 to i1, i2
        int i1 = bi1.hashCode();
        int i2 = bi2.hashCode();

        System.out.println(i1);
        System.out.println(i2);
    }
}