标签:使用 java ar strong art sp on c html
append(char c)
delete(int start, int end)
insert(int offset, char[] str)
package 字符串Buffer;
public class TestString {
public static void main(String[] args) { String s = "MMMMM"; StringBuffer sb = new StringBuffer(s); sb.append(‘.‘).append("NNNN"); System.out.println(sb); sb.delete(5,sb.length()); System.out.println(sb); sb.insert(0, ‘a‘); System.out.println(sb); sb.reverse(); System.out.println(sb); }
}
标签:使用 java ar strong art sp on c html
原文地址:http://www.cnblogs.com/oraclespace/p/3983339.html