Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.math.BigDecimal;

public class Main {

    public static void main(String[] args) {

        BigDecimal bg1 = new BigDecimal("123");
        BigDecimal bg2 = new BigDecimal("123.50");
        BigDecimal bg3 = new BigDecimal("123.80");

        int i1 = bg1.hashCode();
        int i2 = bg2.hashCode();
        int i3 = bg3.hashCode();

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