Code example for Preferences

Methods: putDouble, putInt

0
		prefs.put("displayFontName", "helvetica");
 
		// Toss in a couple more values for the curious who want to look 
		// at how Preferences values are actually stored. 
		Preferences child = prefs.node("/a/b");
		child.putInt("meaning", 42);
		child.putDouble("pi", Math.PI);
 
		prefs.exportSubtree(System.out);
	} 
}