Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    public static boolean compare(BigDecimal val1, BigDecimal val2) {
        boolean result = false;
        if (val1.compareTo(val2) < 0) {
            result = false;
        }
        if (val1.compareTo(val2) == 0) {
            result = true;
        }
        if (val1.compareTo(val2) > 0) {
            result = true;
        }
        return result;
    }
}