public class BufferDemo
{
public static void main(String args[])
{
String foo="foo";
String a="abc"+foo+"def"+Integer.toString(47);
System.out.println(a);
StringBuffer ab= new StringBuffer("abc");
ab.append(foo);
ab.append("def");
ab.append(Integer.toString(47));
System.out.println(ab);
}
}
Showing posts with label StringBuffer demo. Show all posts
Showing posts with label StringBuffer demo. Show all posts
Tuesday, November 25, 2014
StringBuffer example
Subscribe to:
Comments (Atom)