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
2.1m questions
2.1m answers
60 comments
57.0k users