String s = "1,2,3,4,5,6,7,8,";
//目标:删除最后一个 ","
s = s.substring(0, s.length() - 1);
System.out.println(s);
标签:java,String,删除,System,substring,println,字符串 From: https://blog.51cto.com/u_15258465/6056510
String s = "1,2,3,4,5,6,7,8,";
//目标:删除最后一个 ","
s = s.substring(0, s.length() - 1);
System.out.println(s);
标签:java,String,删除,System,substring,println,字符串 From: https://blog.51cto.com/u_15258465/6056510