Construct a PropsCust program p = new Properties(); p.load(System.in);
p = new Properties(); p.load(System.in);
A demonstration main program new PropsCust().process();
new PropsCust().process();
Just show some properties userName = p.getProperty("username", "Unknown User"); userDir = p.getProperty("directory", "/"); System.out.println("Hello " + userName + "."); System.out.println("We are using the " + userDir + "directory today.");
userName = p.getProperty("username", "Unknown User"); userDir = p.getProperty("directory", "/"); System.out.println("Hello " + userName + "."); System.out.println("We are using the " + userDir + "directory today.");