public int getInt ( String key ) { addToDefaults ( key , null ) ; String value = getRequired ( key ) ; return Integer . parseInt ( value ) ; }
Returns the Integer value for the given key . The method fails if the key does not exist or the value is not an Integer .