FileDocCategorySizeDatePackage
PropsCompanies.javaAPI DocExample729Sun Jun 20 22:08:24 BST 2004None

PropsComanies

public class PropsComanies extends Object
Demonstrate Properties reading/writing.
see
HashTableDemo, for the older Hashtable.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)


		Properties props = new Properties();

		// Get my data
		props.put("Adobe", "Mountain View, CA");
		props.put("IBM", "White Plains, NY");
		props.put("Learning Tree", "Los Angeles, CA");
		props.put("Microsoft", "Redmond, WA");
		props.put("Netscape", "Mountain View, CA");
		props.put("O'Reilly", "Sebastopol, CA");
		props.put("Sun", "Mountain View, CA");

		// Now load additional properties
		props.load(System.in);

		// List merged properties, using System.out
		props.list(System.out);