System.getSystemPropertyAsString()
Signature
String getSystemPropertyAsString (String propertyKey, String defaultValue)
Description
Returns the requested System property value as a String.
Parameters
Name | Type | Description |
propertyKey | String | The property key to set a new value for. |
defaultValue | String | The value to return if the requested value is not present. |
Returns
Type | Description |
String | The requested System property value as a String. |
Example
System.getSystemPropertyAsString ("java.io.tmpdir", "");
Result is: The String "c:/temp".