/**
* Demo use of a StringBuffer
***/
public class StringBufferDemo
{
public static void main(String args[]) throws Exception
{
StringBuffer sb = new StringBuffer();
sb.append("Hello, World!
");
sb.append(123);
sb.append(", ");
sb.append(2.5);
System.out.println(sb.toString());
}
}