src/main/java/com/findupon/commons/utilities/NumUtils.java
/**
	 * Attempt to return a meaningful Integer and avoid an {@see #IllegalFormatException} by removing all
	 * commas and decimal places prior to returning {@see Integer.valueOf()}.
	 *
	 * @param str <code>String</code> to parse
	 * @return <code>null</code> ? -1 : a decent <code>int</code>
	 */
Attempt to return a meaningful Integer and avoid an  #IllegalFormatException by removing all
commas and decimal places prior to returning  Integer.valueOf().

@param str String to parse
@return null . -1 : a decent int
Attempt to return a meaningful Integer and avoid an #IllegalFormatException by removing all commas and decimal places prior to returning Integer . valueOf () . @param str String to parse @return null . - 1 : a decent int
public static int intFrom(String str) {
        /*
         * Basically, if it's non sense...
         */
		if(isNotParsable(str)) {
			return ERROR;
		}
        /*
         * The current use case is for floating point (decimal) numbers. We need to make sure there
         * is only 1 decimal in an array of characters.
         */
		if(StringUtils.countMatches(str, decimal) == 1) {
			return Integer.valueOf(StringUtils.substringAfter(str, decimal));
		}
        /*
         * I found this block during implementation. It was happening prior to the lines of an area
         * that was undergoing improvement so, I'll lop it in. I say that because it kinda blindly
         * removes all commas. That could have some frown sides.
         */
		if(str.contains(comma)) {
			str = StringUtils.remove(str, comma);
		}
		return ERROR;
	}
public static int intFrom ( String str ) { /*
         * Basically, if it's non sense...
         */ if ( isNotParsable ( str ) ) { return ERROR ; } /*
         * The current use case is for floating point (decimal) numbers. We need to make sure there
         * is only 1 decimal in an array of characters.
         */ if ( StringUtils . countMatches ( str , decimal ) == 1 ) { return Integer . valueOf ( StringUtils . substringAfter ( str , decimal ) ) ; } /*
         * I found this block during implementation. It was happening prior to the lines of an area
         * that was undergoing improvement so, I'll lop it in. I say that because it kinda blindly
         * removes all commas. That could have some frown sides.
         */ if ( str . contains ( comma ) ) { str = StringUtils . remove ( str , comma ) ; } return ERROR ; }
Attempt to return a meaningful Integer and avoid an {@see #IllegalFormatException} by removing all
 commas and decimal places prior to returning {@see Integer.valueOf()}.
Attempt to return a meaningful Integer and avoid an { @see #IllegalFormatException } by removing all commas and decimal places prior to returning { @see Integer . valueOf () } .