Android String Remove removeWhitespaces(String pString)

Here you can find the source of removeWhitespaces(String pString)

Description

remove Whitespaces

Declaration

public static String removeWhitespaces(String pString) 

Method Source Code

//package com.java2s;

public class Main {
    public static String removeWhitespaces(String pString) {
        return pString.replaceAll("[\\s-]*", "");
    }/*from   w  ww  .j av  a  2s .co  m*/
}

Related

  1. removePhotoFromVCard(String vcard)
  2. removeQuotes(String ssid)
  3. removeSpaces(String string)
  4. removeSurplusSeparator(String str)
  5. removeTableName(String tableName)