StringBuilder java append substring code example Example: stringBuilder append string public StringBuilder append(String str)