+ 2
what is append in java
2 ответов
+ 2
append() is a function in java which is mostly used to append something to a string using StringBuffer
Note: String is Immutable so we use StringBuffer
For eg:
https://code.sololearn.com/chiS9AWsBeEr/?ref=app
+ 1
The append() method concatenates the string representation of any other type of data to the end of the invoking StringBuffer object. It has overloaded versions for all the built-in types and for Object