String str4 = "1,2,3,6,7,";
//删除最后一个字符,
str4 = str4.substring(0, str4.length() -1);

  

相关文章: