question: public static String removeAll ( String str , String [ ] patterns ) { for ( String pattern : patterns ) str = str . replace ( pattern , "" ) ; return str ; }
target:  Removes all occurrences of each pattern in str