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

 str.replace(str.length() - 1, str.length(), "");
原文地址:https://www.cnblogs.com/leirenyuan/p/11090500.html