Java tutorial
//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; public static double densoFormula1() { double rs = 0; double h1 = Double.valueOf(DATA_MAP.get("h1")); double h2 = Double.valueOf(DATA_MAP.get("h2")); rs = h1 - h2 + DENSO_AH; return rs; } }