stringbuffer capacity

capacity() StringBuffer Example

StringBuffer comes with many utility methods to do operations on strings that do not exist in String class. One such method is capacity() StringBuffer. StringBuffer class comes with two methods – length() to find the number of characters present in the buffer and capacity() method to know the buffer size. We know StringBuffer comes with …

capacity() StringBuffer Example Read More »