Show:

A mutable sequence of characters. The principal operations on a StringBuilder are the append methods. The append method always adds these characters at the end of the builder;

Methods

append

(
  • value
)

Append adds given characters at the end of the builder.

Parameters:

  • value String

    Characters need to be append.

clear

()

Clear buffered StringBuider. Remove all elements saved.

replaceAll

(
  • find
  • replace
)

Replace the string occurrence with the stirng

Parameters:

startsWith

(
  • str
)
Bool

Check whether string starts with the passed string or not

Parameters:

  • str String

    String to check whether it start with this or not

Returns:

Bool:

bool true/false True if it contains the string else false

toString

() String

Get characters saved in StringBuilder.

Returns:

String:

All Characters