Android String Remove removeCharacters(String x, char... cs)

Here you can find the source of removeCharacters(String x, char... cs)

Description

remove Characters

Declaration

public static String removeCharacters(String x, char... cs) 

Method Source Code

//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
}

Related

  1. rmvSpace(String baseStr)
  2. rmvSpecial(String baseStr)
  3. removeBlanks(String content)
  4. rmvBlankLines(String input)
  5. remove(String str, char remove)
  6. removeCommaChar(String str)
  7. removeMinusChar(String str)
  8. removePhotoFromVCard(String vcard)
  9. removeQuotes(String ssid)