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_AH = 0.050;
    static final double DENSO_RAG = 0.050;
    static final double DENSO_VF = 67.0;

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

        double h3 = Double.valueOf(DATA_MAP.get("h3"));
        double h4 = Double.valueOf(DATA_MAP.get("h4"));
        double h5 = Double.valueOf(DATA_MAP.get("h5"));

        rs = h4 + h3 - (h5 - DENSO_VF / 43) + DENSO_AH + DENSO_RAG;

        return rs;
    }
}