In this tutorial, we take a look at the StringBuilder class.
Strings are immutable meaning they cant e destroyed once created, but a StringBuilder is mutably making it the best option for string manipulation.
The following are a few methods amongst many:
append(): This method appends a string to the created/ declared StringBuilder object.
capacity(): This method gets the capacity of the StringBuilder which is gotten by the formula 16 + number of characters including white spaces.
charAt(index): This method returns the character at the specified index in the StringBuilder object.
Sit, Enjoy and Learn.
Tutorial codes can be gotten from this Github repository: https://github.com/generalkolo/Javacodes
On this page of the site you can watch the video online Java Tutorials: StringBuilder Class Methods - 1 with a duration of hours minute second in good quality, which was uploaded by the user Ebenezer Edet 03 February 2018, share the link with friends and acquaintances, this video has already been watched 27 times on youtube and it was liked by 0 viewers. Enjoy your viewing!