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 {
    private static final BigDecimal HUNDRED = new BigDecimal("100");

    public static BigDecimal addVatAmount(BigDecimal percentage, BigDecimal amount) {
        return amount.multiply(percentage.divide(HUNDRED));
    }
}