how to convert string buffer to string om java code example Example: convert stringbuffer to string in java str.toString();