Formats the String value as an integer. If the String is NaN then the
default value is assigned.
Parameters: value - the value to be converted to integer. Parameters: dflt - the default value to be used in case value is NaN or null. the integer value throws: NumberFormatException - in the case when default value cannot beconverted to an int.