public class StringBuffer {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s = "中国人是好人";
StringBuffer sb =new StringBuffer();
sb.append(s);
StringBuffer a = new StringBuffer();
a.append("a");
a.append("b");
System.out.println(a.toString());
}
}
|