测试String与StringBuffer的性能区别 测试String与StringBuffer的性能区别 先使用String连接1000000个字符串,计算消耗的时间 ++ 再使用StringBuffer连接1000000个字符串,计算各自消耗的时间 对比在大量字符串内容拼接的性能. java 2023-10-20 141 点赞 2 评论 213 浏览