split陷阱

如果split最后一个为空,则要这么写

String[] lines=line.split(",",-1);

  

posted @ 2018-07-11 16:52  Lost blog  阅读(222)  评论(0)    收藏  举报