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;

扩容:翻倍,不够取所需最小




















posted @ 2019-03-05 09:30  以前、以后  阅读(146)  评论(0编辑  收藏  举报