string拼接时去掉最后一个逗号

 str.replace(str.length() - 1, str.length(), "");

 

posted @ 2019-06-26 16:11  累人猿  阅读(1435)  评论(1编辑  收藏  举报