Android String Remove removeSpaces(String string)

Here you can find the source of removeSpaces(String string)

Description

remove Spaces

License

Apache License

Declaration

private static String removeSpaces(String string) 

Method Source Code

//package com.java2s;
/**//  w  w w.j av a 2 s  .c o  m
 * Source obtained from crypto-gwt. Apache 2 License.
 * https://code.google.com/p/crypto-gwt/source/browse/crypto-gwt/src/main/java/com/googlecode/
 * cryptogwt/util/ByteArrayUtils.java
 */

public class Main {
    private static String removeSpaces(String string) {
        string = string.replaceAll("\\s+", "");
        return string;
    }
}

Related

  1. removeCharacters(String x, char... cs)
  2. removeCommaChar(String str)
  3. removeMinusChar(String str)
  4. removePhotoFromVCard(String vcard)
  5. removeQuotes(String ssid)
  6. removeSurplusSeparator(String str)
  7. removeTableName(String tableName)
  8. removeWhitespaces(String pString)