This is used to return the length of the string i.e. total number of characters.
What the function of charAt(int index) method of StringBuilder class in java?
What the function of ensureCapacity(int minimumCapacity) method of StringBuilder class in java?
What the function of capacity() method of StringBuilder class in java?
What the function of reverse() method of StringBuilder class in java?
What the function of delete(int startIndex, int endIndex) method of StringBuilder class in java?