What's the meaning of setting the capacity of StringBuffer through constructor?

后端 未结 0 1053
南笙
南笙 2020-12-15 08:44
        StringBuffer stringBuffer = new StringBuffer(30);
        System.out.println(stringBuffer.capacity());
        stringBuffer.append("Test");
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题