append()方法 StringBuffer buf = new StringBuffer(); StringBuffer 有append()方法 StringBuffer其实就是动态字符串数组append()是往动态字符串数组里添加 例如: StringBuffer s = new StringBuffer("Hello"); s.append("World"); s的输出内容:HelloWorld