public int getPropAsInt ( String key , int def ) { return Integer . parseInt ( getProp ( key , String . valueOf ( def ) ) ) ; }
Get the value of a property as an integer using the given default value if the property is not set .