append的使用方法

StringBuffer s = new StringBuffer();
s.append("Testing String");
s.append(" ");
s.append("Concatenation Performance");
String s3 = s.toString();

打印结果:Testing String Concatenation Performance

你可能感兴趣的:(String,performance,testing,concatenation)