Here you can find the source of removeCharacters(String x, char... cs)
public static String removeCharacters(String x, char... cs)
//package com.java2s; public class Main { public static String removeCharacters(String x, char... cs) { for (char c : cs) x = x.replaceAll("[" + String.valueOf(c) + "]", ""); return x; }// www.ja va2s .c o m }