在执行.append(String str)方法的时候,会经过这个ecsureCapacityInternal()方法,此时StringBuilder底层的数组value指向了通过Arrays.copy()新建出来的数组
点赞 9
牛客网
牛客企业服务