JDK源碼閱讀--AbstractStringBuilder

 

abstract class AbstractStringBuilder implements Appendable, CharSequence 


1    /**
2      * The value is used for character storage.
3      */
4     char[] value;
5 
6     /**
7      * The count is the number of characters used.
8      */
9     int count;

擴容:翻倍,不夠取所需最小ui

相關文章
相關標籤/搜索