How can I clear or empty a StringBuilder
You can use Java’s StringBuilder
to create and manipulate Strings
as follows:
The following three (3) options allow you to clear or empty a StringBuilder.
Option 1 – using setLength
|
|
Option 2 – reinstantiating
|
|
Option 3 – using delete
|
|