Loading, please be patient.

String Builder - Build string online





Java StringBuilder Class


Java StringBuilder class is practiced to create modifiable String. The Java StringBuilder class is the same as the StringBuffer class except that it is non-synchronized.


Constructor Description
StringBuilder() Creates an empty String Builder with initial capacity of 16.
StringBuilder(String str) It creates a String Builder with the particular string.
StringBuilder(int length) Creates an empty String Builder with the particular capacity as length