StringBuffer s = new StringBuffer();
s.append("Testing String");
s.append(" ");
s.append("Concatenation Performance");
String s3 = s.toString();
打印结果:Testing String Concatenation Performance
s.append("Testing String");
s.append(" ");
s.append("Concatenation Performance");
String s3 = s.toString();
打印结果:Testing String Concatenation Performance