谨慎吐司

文章
3
资源
0
加入时间
3年0月27天

测试String与StringBuffer的性能区别

测试String与StringBuffer的性能区别 先使用String连接1000000个字符串,计算消耗的时间 ++ 再使用StringBuffer连接1000000个字符串,计算各自消耗的时间 对比在大量字符串内容拼接的性能.