I\'m using StringBuffer in Java to concat strings together, like so:
StringBuffer str = new StringBuffer(); str.append(\"string value\");
You should be using StringBuilder.
Where possible, it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.