0

I discovered that there is a such class like StringBuilder
but I don't find any thing that convince me to use it.
Explain me it's advantage and disadvantage and if you gave some examples I like to see them

thanks a lot Sergey

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by polo_coins
0

String builder can have advantages when buidling up output. So instead of a ton of

s += titletext;
s += "\r\n--------";

etc

you can just do
sb.append(newtext);
sb.appendline("---------");

it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.

0

String builder can have advantages when buidling up output. So instead of a ton of

s += titletext;
s += "\r\n--------";

etc

you can just do
sb.append(newtext);
sb.appendline("---------");

it acts almost like a buffer, however if you've done much coding before it does feel unnecessary and isnt the way your brain is used thinking.[/QUO
thanks LIZR

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.