What would be the best way to convert string concatenations to stringbuffer appends. I know if has a performance impact overall. For example, I want to output to the user: The count was somenumber.
Here's my line
System.out.println ("The count was " + countvariable + ".\n"
Where countvariable is an int.
And do I have to convert stringbuffers back to strings?
Here's my line
System.out.println ("The count was " + countvariable + ".\n"
Where countvariable is an int.
And do I have to convert stringbuffers back to strings?