how to remove all spaces from a 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+", "");