remove whitespace in java string 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+", "");
st = st.replaceAll("\\s+","")
a = a.replaceAll("\\s+", "");