remove empty space in java code example
Example 1: how to remove all whitespace from string java
st = st.replaceAll("\\s+","")
Example 2: java 8 remove spaces from string
a.replaceAll("\\s+","");
st = st.replaceAll("\\s+","")
a.replaceAll("\\s+","");