StringBuffer类 的append方法添加字符串的方法: 第一种,代码如下 StringBuffer sb=new StringBuffer();sb.append(""); 第二种,代码如下 sb.append("");