![]() |
The Java Developers Almanac 1.4Order this book from Amazon. |
e88. Listing All System Properties// Get all system properties Properties props = System.getProperties(); // Enumerate all system properties Enumeration enum = props.propertyNames(); for (; enum.hasMoreElements(); ) { // Get property name String propName = (String)enum.nextElement(); // Get property value String propValue = (String)props.get(propName); }
e87. Setting the Value of a System Property from the Command Line
© 2002 Addison-Wesley. |