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