java 去掉最后一个多余的字符后返回字符串

来源:互联网 发布:c语言追加写入文件 编辑:程序博客网 时间:2024/04/29 23:10

str="aa;bb;cc;";


str =str.substring(0,str.length()-1);

0 0
原创粉丝点击