StringBuffer调整空间

在无法估算字符串大小情况下,可以使用StringBuffer的trimToSize()方法调整到合适大小。

原文地址:https://www.cnblogs.com/lvlin241/p/8873089.html