List of utility methods to do String Merge
String | mergeBlank(String s) merge Blank int numberBlank = 0; String a1; String a2; for (int index = 0; index < s.length(); index++) { numberBlank = getBlankNumber(s, index); if (numberBlank >= 2) { a1 = s.substring(0, index); a2 = s.substring(index + numberBlank - 1, s.length()); ... |
String | combineBlank(String str) combine Blank String dest = str; if (str != null) { Pattern p = Pattern.compile("\t"); Matcher m = p.matcher(str); dest = (m.replaceAll(" ")).trim().replaceAll(" +", " "); } else { dest = ""; return dest; |