public static int getInt ( Properties props , String key , int defaultValue ) { String value = props . getProperty ( key ) ; if ( value != null ) { return Integer . parseInt ( value ) ; } else { return defaultValue ; } }
Load an integer property . If the key is not present returns defaultValue .