Java tutorial
public class Main { public static void main(String[] args) { String myKey = "MyKey"; System.setProperty(myKey, "102"); System.out.println(Integer.getInteger(myKey)); System.out.println(Integer.getInteger("NoExist", 999)); } }