StringBuffer类

StringBuffer 方法

以下是 StringBuffer 类支持的主要方法:

序号方法描述
1 public StringBuffer append(String s)
将指定的字符串追加到此字符序列。
2 public StringBuffer reverse()
 将此字符序列用其反转形式取代。
3 public delete(int start, int end)
移除此序列的子字符串中的字符。
4 public insert(int offset, int i)
int 参数的字符串表示形式插入此序列中。
5 replace(int start, int end, String str)
使用给定 String 中的字符替换此序列的子字符串中的字符。
posted @ 2018-10-31 17:53  周敏6012  阅读(139)  评论(0编辑  收藏  举报