Adrian Crum wrote:
> Wouldn't that create two String instances, then pass the final String result 
> to StringBuilder.append()?

I don't understand what you are saying.  The way the code currently
is, *does* create a temporary StringBuilder, and a new temporary
String, which then gets passed to the outer StringBuilder writer instance.

My suggestion was to not do it this way; are you agreeing with that,
or saying something else?

Reply via email to