public int getInt ( final String key ) { final String value = getProperty ( key ) ; if ( value == null ) { throw new NumberFormatException ( "Couldn't parse property to int." ) ; } return Integer . parseInt ( value ) ; }
Gets the prefixed key and parse it to an int - value .