📜  为什么字符串生成器 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:16.499000             🧑  作者: Mango

代码示例1
StringBuilder is for, well, building strings.
Specifically, building them in a very
performance way. The String class is good
for a lot of things, but it actually has
really terrible performance when assembling 
a new string out of smaller string parts
because each new string is a totally new,
reallocated string.