src/main/java/com/findupon/commons/utilities/NumUtils.java
/**
	 * Removes characters commonly found in a currency String and attempts to convert the result
	 * into an Integer.
	 *
	 * @param str
	 * @return
	 */
Removes characters commonly found in a currency String and attempts to convert the result
into an Integer.

@param str
@return
Removes characters commonly found in a currency String and attempts to convert the result into an Integer . @param str @return
public static int fromCurrencyString(String str) {
		int errorCode = hasErrors(str);
		if(errorCode != NONE) {
			return errorCode;
		}
		str = StringUtils.remove(str, dollarSymbol);
		str = StringUtils.remove(str, comma);
		return toInt(StringUtils.trimToEmpty(str), -1);
	}
public static int fromCurrencyString ( String str ) { int errorCode = hasErrors ( str ) ; if ( errorCode != NONE ) { return errorCode ; } str = StringUtils . remove ( str , dollarSymbol ) ; str = StringUtils . remove ( str , comma ) ; return toInt ( StringUtils . trimToEmpty ( str ) , - 1 ) ; }
Removes characters commonly found in a currency String and attempts to convert the result
 into an Integer.
Removes characters commonly found in a currency String and attempts to convert the result into an Integer .