Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Double percent(Double d1, Double d2) {
        if (d1 == null || d2 == null)
            return Double.valueOf(0);
        return d1 * (d2 / 100);
    }
}