52

羞,Java 字符串拼接竟然有这么多姿势

 4 years ago
source link: https://juejin.im/post/5dcc76bde51d45109d6df4b4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
二哥,我今年大二,看你分享的《阿里巴巴 Java 开发手册》上有一段内容说:“循环体内,拼接字符串最好使用 StringBuilder 的 append 方法,而不是 + 号操作符。”到底为什么啊,我平常一直就用的‘+’号操作符啊!二哥有空的时候能否写一篇文章

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK