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 CATERPILLAR_NL = 0.300; public static double caterpillarFormula4() { double rs = 0; double h7 = Double.valueOf(DATA_MAP.get("h7")); double h8 = Double.valueOf(DATA_MAP.get("h8")); rs = h7 - h8 + CATERPILLAR_NL; return rs; } }