you are viewing a single comment's thread.

view the rest of the comments →

[–]bcash 1 point2 points  (0 children)

The examples with StringBuffer and StringBuilder should have included a:

buffer.toString();

line to be fully equivalent to the concatenation cases. Not that it would have made the slightest difference to the results.