Android String Replace replaceSpaceCharacter(String string)

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

Description

replace Space Character

Declaration

public static String replaceSpaceCharacter(String string) 

Method Source Code

//package com.java2s;

public class Main {

    public static String replaceSpaceCharacter(String string) {
        if (null == string || "".equals(string)) {
            return "";
        }//from   ww w  .j av  a  2  s  . c  o m
        return string.replace(" ", "");
    }
}

Related

  1. replace(String s, String[] oldSubs, char[] newSubs)
  2. replace(String s, char oldSub, String newSub)
  3. replace(String s, char oldSub, char newSub)
  4. replace(String source, CharSequence target, CharSequence replacement)
  5. replaceChar(String source, String subject, String object)
  6. collapse(String str, String chars, String replacement)
  7. collapseControlChars(String str, String replacement)
  8. stringReplace(String str, String what, String replacement)