Adds new line marker to text that is actually in StringBuffer. Next part will be shown in the line below.

Answer from markubik on Stack Overflow
🌐
Oracle
docs.oracle.com › javase › 8 › docs › api › java › lang › StringBuffer.html
StringBuffer (Java Platform SE 8 )
April 21, 2026 - The principal operations on a StringBuffer 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 buffer.
🌐
GeeksforGeeks
geeksforgeeks.org › java › stringbuffer-append-method-in-java-with-examples
StringBuffer append() Method in Java with Examples - GeeksforGeeks
July 11, 2025 - We are geeks and its really Result ... append(char[] cstr, int iset, int ilength) : This method appends the string representation of a subarray of the char array argument to this sequence....
🌐
CodeGym
codegym.cc › java blog › strings in java › append() method in java: stringbuilder and stringbuffer
Append() Method in Java: StringBuilder and StringBuffer
September 28, 2023 - Append() is a Java method of StringBuilder and StringBuffer classes that append some value to a current sequence
🌐
Pega
community.pega.com › sites › pdn.pega.com › files › help_v55 › methods › stringbuffer-append › stringbuffer-append.htm
StringBuffer-Append method
Use this method to manipulate local variables of type String Buffer for the current activity that are contained in a Java StringBuffer object. This method appends a text string to the current contents of the buffer.
🌐
Microsoft Learn
learn.microsoft.com › en-us › dotnet › api › java.lang.stringbuffer.append
StringBuffer.Append Method (Java.Lang) | Microsoft Learn
Adds the string representation of the specified float to the end of this StringBuffer. [Android.Runtime.Register("append", "(F)Ljava/lang/StringBuffer;", "")] public Java.Lang.IAppendable Append(float f);
🌐
Android Developers
developer.android.com › api reference › stringbuffer
StringBuffer | API reference | Android Developers
Skip to main content · English · Deutsch · Español – América Latina · Français · Indonesia · Polski · Português – Brasil · Tiếng Việt · 中文 – 简体
Find elsewhere
🌐
Pega
docs.pega.com › bundle › platform › page › platform › reference › methods › stringbuffer-append.html
StringBuffer-Append method
Skip to main contentSkip to search · Terms of Use · Support · Glossary · Privacy · Trademarks · ©2026 Pegasystems Inc · Join the conversation
🌐
Tutorialspoint
tutorialspoint.com › java › stringbuffer_append.htm
Java - String Buffer append() Method
public StringBuffer append(boolean b) public StringBuffer append(char c) public StringBuffer append(char[] str) public StringBuffer append(char[] str, int offset, int len) public StringBuffer append(double d) public StringBuffer append(float f) public StringBuffer append(int i) public StringBuffer append(long l) public StringBuffer append(Object obj) public StringBuffer append(StringBuffer sb) public StringBuffer append(String str)
🌐
4JS
4js.com › online_documentation › fjs-fgl-manual-html › fgl-topics › c_fgl_ClassStringBuffer_append.html
Genero Business Development Language - base.StringBuffer.append
The append() method appends a string to the internal string buffer. DEFINE buf base.StringBuffer LET buf = base.StringBuffer.create() CALL buf.append("abc") ...
🌐
BeginnersBook
beginnersbook.com › 2015 › 04 › append-a-newline-to-stringbuffer
Java – How to append a newline to StringBuffer
October 9, 2022 - sb.append(System.getProperty("line.separator")); sb2.append(System.lineSeparator());- This only works on jdk 1.7 or higher. ... public class LineBreakStringBuffer { public static void main(String args[]) { StringBuffer sb= new StringBuffer("Hello"); // Method 1: sb.append(System.getProperty("line.separator")); sb.append("World"); System.out.println(sb); StringBuffer sb2= new StringBuffer("Welcome"); // Method 2: sb2.append(System.lineSeparator()); sb2.append("to My blog"); System.out.println(sb2); } }
🌐
Educative
educative.io › answers › what-is-the-stringbufferappend-method-in-java
What is the StringBuffer.append() method in Java?
In Java, StringBuffer.append() is a method in the StringBuffer class. It is used to append a string to the end of an existing string buffer.
🌐
BeginnersBook
beginnersbook.com › 2022 › 10 › java-stringbuffer-append-method
Java StringBuffer append() Method
October 9, 2022 - Returns a StringBuffer instance that contains the appended value. If specified offsets are invalid then this method throws IndexOutOfBoundsException. public class JavaExample { public static void main(String[] args) { StringBuffer sb = new StringBuffer("Welcome"); sb.append(1);//append int ...
🌐
Sencha
docs.sencha.com › gxt › 4.x › javadoc › gwt-2.8.2 › java › lang › StringBuffer.html
StringBuffer (GWT 2.8.2)
java.lang.StringBuffer · All Implemented Interfaces: Appendable, CharSequence · public final class StringBuffer extends Object · A fast way to create strings using multiple appends. This class is an exact clone of StringBuilder except for the name. Any change made to one should be mirrored ...
🌐
GeeksforGeeks
geeksforgeeks.org › java › stringbuffer-class-in-java
StringBuffer Class in Java - GeeksforGeeks
All methods of StringBuffer are synchronized, making it safe to use in multithreaded environments. Ideal for scenarios with frequent modifications like append, insert, delete or replace operations.
Published   May 27, 2026