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_VF = 65.0; public static double caterpillarFormula2() { double rs = 0; double h3 = Double.valueOf(DATA_MAP.get("h3")); double h4 = Double.valueOf(DATA_MAP.get("h4")); rs = h3 - (h4 - CATERPILLAR_VF / 43) + 0.100; return rs; } }