append() StringBuffer Example

StringBuffer, with its nature of mutability, comes with many methods that do not exist in String. One useful method is append() StringBuffer method which appends anything to the existing contents. Following is the method signature of append() StringBuffer as defined in Java API. public StringBuffer append(String str): String str is appended at the end of …

append() StringBuffer Example Read More »