Java StringBuffer codePointBefore(int index) method returns the unicode code point value for the character before the specified index. For example, sb.codePointBefore(5) would return the code point for… [Read More]
Java StringBuffer codePointCount()
Java StringBuffer codePointCount(int beginIndex, int endIndex) returns the code points count between the given indexes. In this tutorial, we will discuss codePointCount() method with examples…. [Read More]
Java StringBuffer subSequence()
Java StringBuffer subSequence() method returns a sub sequence based on the start and end indexes. As we know, StringBuffer is a char sequence, the subSequence()… [Read More]
Java StringBuffer setCharAt()
Java StringBuffer setCharAt() method sets a specified character at the given index. This method changes the character sequence represented by StringBuffer object, as it replaces… [Read More]
Java StringBuffer codePointAt()
Java StringBuffer codePointAt(int index) method returns a code point value of the character present at the specified index. A code point is a numeric value that… [Read More]
Java StringBuffer offsetByCodePoints()
Java StringBuffer offsetByCodePoints(int index, int codePointOffset) method returns the index of a character that is offset from the given index by the specified code points…. [Read More]
Java StringBuffer charAt()
Java StringBuffer charAt() method returns the character present at the given index. In this tutorial, we will discuss the charAt() method with examples. Syntax of… [Read More]
Java StringBuffer ensureCapacity()
Java StringBuffer ensureCapacity() method ensures that specified minimum capacity is maintained. If the current capacity is less than the specified minimum capacity then the capacity… [Read More]
Java StringBuffer capacity()
Java StringBuffer capacity() method returns the current capacity of StringBuffer object. In this tutorial, we will discuss the capacity() method in detail with the help of… [Read More]
Java StringBuffer toString()
Java StringBuffer toString() method returns the string representation of this character sequence. An object of StringBuffer class represents a character sequence. The toString() method converts… [Read More]