以回车、空格切分

String[] itemIds = ids.split("\\s+");
虽然\n \r是换行 回车,但是切分时不好用
\s+ 代表所有空白
posted @ 2016-05-20 15:28  德德豸  阅读(140)  评论(0编辑  收藏  举报