public static final int getInt ( String value ) { return ( value == null || value . length ( ) == 0 ? 0 : Integer . parseInt ( value ) ) ; }
This method retrieves an int value from a String instance . It returns zero by default if a null value or an empty string is supplied .