Java tutorial
public class Main { public static void main(String[] args) { System.setProperty("java2s1", "true"); System.setProperty("java2s2", "abcd"); boolean bool1 = Boolean.getBoolean("java2s1"); boolean bool2 = Boolean.getBoolean("java2s2"); System.out.println("boolean value of system property java2s1 is " + bool1); System.out.println("boolean value of system property java2s2 is " + bool2); } }