JAVAにおける文字列処理
// 1
str1 = str1.replaceAll(" +"," "); // replaceAll ,replace !
str1 = str1.replaceAll("\\s*"," "); // replaceAll ,replace !
// TAB
resultStr = resultStr.replace(" ", " ");
// 1
str1 = str1.replaceAll(" +"," "); // replaceAll ,replace !
str1 = str1.replaceAll("\\s*"," "); // replaceAll ,replace !
// TAB
resultStr = resultStr.replace(" ", " ");