Java Tutorial/String and Character Manipulation

< Java Tutorial

Strings

String builder

In Java, Strings are normally immutable objects - making a change necessitates creating a new String, which will be inefficient if you need to manipulate large amounts of text.

The StringBuidler class is designed for such instances.

The following methods are important for the string builder:

This article is issued from Wikiversity - version of the Saturday, July 18, 2015. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.