Here you can find the source of rmvSpace(String baseStr)
public static String rmvSpace(String baseStr)
//package com.java2s; public class Main { public static String rmvSpace(String baseStr) { return baseStr.replace(" ", ""); }/*from ww w . j a v a 2 s . c o m*/ }