可能な重複の使用はappend():利点やこのなぜ代わりに+
int a= 42 StringBuffer sb = new StringBuffer(40); String s = sb.append("a = ").append(a).append("!").toString(); System.out.println(sb);
結果をすることの目的> aは何であるか
Why to use StringBuffer in Java instead of the string concatenation operator
= 42 !代わりに
int a= 42
String s = "a = " + a + "!";
System.out.println(sb);
ありがとうございました。私はそれをgoogledと記事を読んで、それは多く説明した。 – code511788465541441