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);
}
}
Tuesday, November 25, 2014
StringBuffer example
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment