Notice


AWT and SWING will be covered soon !

Tuesday, September 22, 2009

String Buffer

 

image

 

public class strbuf
{
    public static void main(String args[])
    {
        String str1="Hello";
        StringBuffer strbuf=new  StringBuffer(str1);
        str1= strbuf.append("World").toString();
        System.out.println(str1);
    }
}

No comments:

Post a Comment