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("456");

        BigDecimal bg3 = bg1.min(bg2);

        System.out.println(bg3);
    }
}