CharSetUtils.delete : CharSetUtils « Apache Common « Java Tutorial






import org.apache.commons.lang.CharSetUtils;

public class MainClass {
  public static void main(String[] args) {
    //Specified characters deleted.                
    System.out.println("Delete B and o = " +
        CharSetUtils.delete("BorisBecker", "Bo"));
    System.out.println("Delete B,o,k,e and r = " +
        CharSetUtils.delete("BorisBecker", new String[] { "Bo", "ker" }));
  }
}
Delete B and o = risecker
Delete B,o,k,e and r = isc
  Download:  CommonLangCharSetUtils.delete.zip( 199 k)







37.15.CharSetUtils
37.15.1.CharSetUtils.squeeze
37.15.2.CharSetUtils.keep
37.15.3.CharSetUtils.delete
37.15.4.CharSetUtils.count
37.15.5.Build Equals With EqualBuilder