Pattern p = pile("\\s{2,}|\t");Matcher m = p.matcher(str);String strNoBlank = m.replaceAll(" ");System.out.println(strNoBlank);
700字范文,内容丰富有趣,生活中的好帮手!
时间:2023-01-30 05:42:32
Pattern p = pile("\\s{2,}|\t");Matcher m = p.matcher(str);String strNoBlank = m.replaceAll(" ");System.out.println(strNoBlank);