remove any number of white spaces java code example
Example 1: how to remove all whitespace from string java
st = st.replaceAll("\\s+","")
Example 2: how to remove white space between numbers in a string in java
"Hello 111 222 333 World!"
st = st.replaceAll("\\s+","")
"Hello 111 222 333 World!"