System.getSystemPropertyAsInt()
Signature
int getSystemPropertyAsInt (String propertyKey, int defaultValue)
Description
Returns the requested System property value as an int.
Parameters
Name | Type | Description |
propertyKey | String | The property key to set a new value for. |
defaultValue | int | The value to return if the requested value is not present. |
Returns
Type | Description |
int | The requested System property value as an int. |
Example
System.getSystemPropertyAsInt ("be.myint", 5);
Result is: The int value of the System property "be.myint".