removeAllWhitespace static method
Remove all whitespace inside string 删除字符串内的所有空格 Example: your name => yourname
Implementation
static String? removeAllWhitespace(String s) {
if (ObjectUtils.isNullOrBlank(s)) {
return null;
}
return s.replaceAll(' ', '');
}