32

StringBuilder类-CZ小蚂蚱

 6 years ago
source link: http://blog.51cto.com/13587708/2084585
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.
1.1StringBuilder类概述StringBuilder:是一个可变的字符串。字符串缓冲区类。String和StringBuilder的区别:String的内容是固定的StringBuilder的内容是可变的1.1.1+=拼接字符串耗费内存原因:每次拼接都会产生新的字符串对象,而利用StringBuilder来拼接字符串自始至终用的都是同一个StringBuilder容器1.2String

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK