![]() |
The Java Developers Almanac 1.4 |
|
e86. Getting and Setting the Value of a System Property // Get a system property
String dir = System.getProperty("user.dir");
// Set a system property
String previousValue = System.setProperty("application.property", "newValue");
e88. Listing All System Properties
© 2002 Addison-Wesley. |