Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static Map<String, String> DATA_MAP = new HashMap<String, String>();
    static final double DENSO_NF = 34.0;

    public static double densoFormula3() {
        double rs = 0;

        double h1 = Double.valueOf(DATA_MAP.get("h1"));
        double h2 = Double.valueOf(DATA_MAP.get("h2"));
        double h3 = Double.valueOf(DATA_MAP.get("h3"));

        rs = h1 - (h2 - DENSO_NF / 35.8) - h3;

        return rs;
    }
}