- Use
append(String str)API method of StringBuffer. This method appends the specified string to this character sequence. - The method can also be used to append a
boolean, achar, achar array, adouble, afloat, anintand anObject
append(String str) API method of StringBuffer. This method appends the specified string to this character sequence.boolean, a char, a char array, a double, a float, an int and an Object