how to delete several whitespace in java code example
Example 1: how to remove all whitespace from string java
st = st.replaceAll("\\s+","")
Example 2: remove space string java
a = a.replaceAll("\\s+", "");
Example 3: java remove double spaces
StringUtils.normalizeSpace(string);