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_NF = 33.0; public static double caterpillarFormula3() { double rs = 0; double h5 = Double.valueOf(DATA_MAP.get("h5")); double h6 = Double.valueOf(DATA_MAP.get("h6")); rs = h5 - (h6 - CATERPILLAR_NF / 35.8); return rs; } }