StringBuffer:
- A StringBuffer is use to multiple data add in one string to use and StringBuffer is provide multiple sequence characters.
void main()
{
StringBuffer str =StringBuffer();
str.write("Hello");
str.write(",");
str.write("Jeet");
print(str);
}
Output:
Hello,Jeet