Skip to content

Tag Archives: Java-StringBuilder

The replace(int start, int end, String str) method of StringBuilder class is used to replace the characters in a substring of this sequence with characters… Read More
The setCharAt(int index, char ch) method of StringBuilder class is used to set the character at the position index passed as ch. This method changes… Read More
The reverse() method of StringBuilder is used to reverse the characters in the StringBuilder. The method helps to this character sequence to be replaced by… Read More
The offsetByCodePoints() method of StringBuilder class returns the index within this String contained by StringBuilder that is offset from the index passed as parameter by… Read More
The ensureCapacity(int minimumCapacity) method of StringBuilder class helps us to ensures the capacity is at least equal to the specified minimumCapacity passed as the parameter… Read More
The capacity() method of StringBuilder Class is used to return the current capacity of StringBUilder object. The capacity is the amount of storage available to… Read More
The delete(int start, int end) method of StringBuilder class removes the characters starting from index start to index end-1 from String contained by StringBuilder. This… Read More
The deleteCharAt(int index) method of StringBuilder class remove the character at the given index from String contained by StringBuilder. This method takes index as a… Read More
The getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin) method of StringBuilder class copies the characters starting at the given index:srcBegin to index:srcEnd-1 from String… Read More
The length() method of StringBuilder class returns the number of character the StringBuilder object contains. The length of the sequence of characters currently represented by… Read More
The codePointAt(int index) method of StringBuilder class takes an index as a parameter and returns a character unicode point at that index in String contained… Read More
The codePointBefore() method of StringBuilder class returns the number of Unicode code points in the specified text range in String contained by StringBuilder. This method… Read More
The charAt(int index) method of StringBuilder Class is used to return the character at the specified index of String contained by StringBuilder Object. The index… Read More
The codePointBefore() method of StringBuilder class takes an index as a parameter and returns the “Unicode number” of the character before the specified index in… Read More
The java.lang.StringBuilder.append() method is used to append the string representation of some argument to the sequence. There are 13 ways/forms in which the append() method… Read More