切分字符串(空格,换行,回车,空字符)

来源:互联网 发布:女诫 知乎 编辑:程序博客网 时间:2024/05/24 04:43

分割字符串,以前好傻啊,这个真机智。。。

String s = "";String[] arr = s.split("\\s+");
0 0