StringBuilder has a public StringBuilder append(CharSequence s) method. StringBuilder implements the CharSequence interface, so you can pass a StringBuilder to that method.
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › StringBuilder.html
StringBuilder (Java Platform SE 8 )
April 21, 2026 - The principal operations on a StringBuilder are the append and insert methods, which are overloaded so as to accept data of any type. Each effectively converts a given datum to a string and then appends or inserts the characters of that string to the string builder.
Videos
20:34
Learn Java Programming - StringBuilder .append() Method Tutorial ...
01:24
Java StringBuilder append Methods Explained with Examples | Java ...
01:10
Java StringBuilder: Adding Strings with append(String str) Method ...
02:44
StringBuilder append() Method in Java With Examples - YouTube
01:56
String += vs. StringBuilder.append #java #shorts #coding #airhacks ...
17:32
StringBuilder Class in Java - Capacity, Append, Insert, Delete, ...
Tutorialspoint
tutorialspoint.com › java › lang › stringbuilder_append_string.htm
Java.lang.StringBuilder.append() Method
The java.lang.StringBuilder.append(String str) method appends the specified string to this character sequence.The characters of the String argument are appended, in order, increasing the length of this sequence by the length of the argument.
Codecademy
codecademy.com › docs › java › stringbuilder › .append()
Java | StringBuilder | .append() | Codecademy
August 22, 2022 - The .append() method appends the string value of its argument to the StringBuilder.
Oracle
docs.oracle.com › javase › 7 › docs › api › java › lang › StringBuilder.html
StringBuilder (Java Platform SE 7 )
The principal operations on a StringBuilder are the append and insert methods, which are overloaded so as to accept data of any type. Each effectively converts a given datum to a string and then appends or inserts the characters of that string to the string builder.
Top answer 1 of 2
27
StringBuilder has a public StringBuilder append(CharSequence s) method. StringBuilder implements the CharSequence interface, so you can pass a StringBuilder to that method.
2 of 2
3
There are plenty of append() overloads, including append(CharSequence cs). Strings are handled in their own method, other CharSequences not having their own overload are handled by the more general one.
Interestingly there is an append(StringBuffer sb).
BeginnersBook
beginnersbook.com › 2014 › 08 › java-stringbuilder-append-char-c-method
Java – StringBuilder.append(char c) Method
October 6, 2022 - public StringBuilder append(char c): This method appends specified char c at the end of the char sequence represented by StringBuilder object. There are several variations of this method that allow various data types to be appended.
Dot Net Perls
dotnetperls.com › append
C# - StringBuilder Append and AppendLine - Dot Net Perls
December 7, 2023 - Append adds data to a StringBuilder in C# code.
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.text.stringbuilder.appendjoin
StringBuilder.AppendJoin Method (System.Text) | Microsoft Learn
Concatenates the string representations ... instance of the string builder. public: System::Text::StringBuilder ^ AppendJoin(System::String ^ separator, ReadOnlySpan<System::Object ^> values);...
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › system.text.stringbuilder.appendline
StringBuilder.AppendLine Method (System.Text) | Microsoft Learn
Appends the default line terminator to the end of the current StringBuilder object.
Andrew Lock
andrewlock.net › a-deep-dive-on-stringbuilder-part-2-appending-strings-built-in-types-and-lists
Appending strings, built-in types, and lists: A deep dive on StringBuilder - Part 2
July 20, 2021 - As the name suggests, this essentially combines string.Join() with Append, while ensuring that we don't place more pressure on the garbage collector than necessary. Just as for string.Join() there are multiple overloads, but they all essentially delegate to the same private function, so I've only shown one below: public unsafe StringBuilder AppendJoin(string?
Tutorialspoint
tutorialspoint.com › java › lang › stringbuilder_append.htm
Java StringBuilder append() Method
The Java StringBuilder append() method appends the string representation of its various arguments to the sequence. This method is a part of the String concatenation technique to combine two or more strings in java.
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › java.lang.stringbuilder.append
StringBuilder.Append Method (Java.Lang) | Microsoft Learn
Append(ICharSequence, Int32, Int32) Attributes · RegisterAttribute · IndexOutOfBoundsException · if start or end are negative, start is greater than end or end is greater than the length of csq. Java documentation for java.lang.StringBuilder.append(java.lang.CharSequence, int, int).
Oracle
docs.oracle.com › javase › 6 › docs › api › java › lang › StringBuilder.html
StringBuilder (Java Platform SE 6)
The principal operations on a StringBuilder are the append and insert methods, which are overloaded so as to accept data of any type. Each effectively converts a given datum to a string and then appends or inserts the characters of that string to the string builder.
Jsparrow
jsparrow.github.io › rules › use-string-builder-append.html
Use StringBuilder::append | jSparrow Documentation
String value = new StringBuilder().append("prefix") .append(2*3) .append("value") .append(2) .append(3) .append(4 + 5) .append("suffix") .toString();
GeeksforGeeks
geeksforgeeks.org › java › stringbuilder-class-in-java-with-examples
StringBuilder Class in Java - GeeksforGeeks
The append() method adds the given string to the end of the existing sequence without creating a new object. This makes StringBuilder efficient for concatenation operations.
Published May 8, 2026