Examples base.StringBuffer usage examples. Example 1: Add strings to a StringBuffer Example 2: Modify a StringBuffer with a function