网络 字符串;字符串缓冲;字符串缓存类
Consider for example usage of the thread safe StringBuffer.
举例来说,考虑一下线程安全的StringBuffer的用法。
For comparison, Table 2 includes times for String and StringBuffer.
为了比较,表 2 还包含了 String和 StringBuffer的时间。
The first step here is to add a new member variable, a StringBuffer called elementContent.
这里的第一步是添加一个新的成员变量,即一个名为elementcontent的StringBuffer。
The familiar advice is; use StringBuffer instead of a String if you are going to be mutating it.
一个类似的建议是,如果你希望字符串是可变的,就应该使用StringBuffer。
Figure 4 shows a dramatic difference between Rope and StringBuffer that was not apparent in Figure 3.
图4显示了图3中不太明显的Rope和StringBuffer之间的巨大区别。