Wednesday, 9 April 2014

StringBuffer Methods

class SbDemo
{

public static void main(String[] args)
{
StringBuffer sb1=new  StringBuffer("hello how are");
StringBuffer sb2=new  StringBuffer(4);
System.out.println(sb1);
sb2.append("hey");
System.out.println(sb2);
System.out.println("Hello World!");
}
}

No comments:

Post a Comment