StringBuffer
1.连接字符串
StringBuffer str = new StringBuffer();
str.append(";");
2.删除字符串
删除最后一个字符串
stringBuffer
.deleteCharAt(
stringBuffer
.length()-
1
);
字符串处理
1.字符串分割
String[] leaseList = lease.split(
","
);
2.截取长度
截取从最后一个“
,
”开始后的第一个字符开始到最后
String
string
= stringBuffer.substring(stringBuffer.indexOf(
","
) +
1
);