How do you remove the , and spaces between strings in java?
str.replaceAll("\s+", "");
s A whitespace character: [ x0Bf ]
java.util.regex.Pattern has all the predefined classes.
java.util.regex.Pattern
755k questions
754k answers
5 comments
53.3k users