question: public static String removeAll ( String source , char toRemove ) { int toRemoveIndex = source . indexOf ( toRemove ) ; if ( toRemoveIndex != - 1 ) { StringBuilder result = new StringBuilder ( source . length ( ) ) ; int sourceIndex = 0 ; while ( toRemoveIndex != - 1 ) { result . append ( source . substring ( sourceIndex , toRemoveIndex ) ) ; sourceIndex = toRemoveIndex + 1 ; toRemoveIndex = source . indexOf ( toRemove , sourceIndex ) ; if ( toRemoveIndex == - 1 ) { result . append ( source . substring ( sourceIndex , source . length ( ) ) ) ; } } return result . toString ( ) ; } else { return source ; } }
target:  A fast utility method that does'nt use REGEX and removes all of toRemove from source.