Friday, 1 April 2016

Java Tutorial : Java StringBuffer [append(StringBuffer sb) method]


Click here to watch in Youtube :
https://www.youtube.com/watch?v=8R4aHHGTCsQ&list=UUhwKlOVR041tngjerWxVccw

Click the below Image to Enlarge
Java Tutorial : Java StringBuffer [append(StringBuffer sb) method] 
StringBufferDemo.java
/*
 * public StringBuffer append(StringBuffer sb)
 * 
 * Appends the specified StringBuffer to this sequence.
 * 
 * Parameters:
 * ----------   
 * sb - the StringBuffer to append.
 * 
 * Returns:
 * -------
 * a reference to this object.
 */

public class StringBufferDemo
{

    public static void main(String[] args)
    {
        StringBuffer sb1 = new StringBuffer("Hello ");
        StringBuffer sb2 = new StringBuffer("Java");
        sb1.append(sb2);
        System.out.println(sb1);
    }
}
Output
Hello Java
Click the below link to download the code:
https://sites.google.com/site/javaee4321/java/StringBufferDemo_append_sb_app.zip?attredirects=0&d=1

Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/StringBufferDemo_append_sb_app

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/8be38147a030ff6efd24e1bdc0d15c0306083f5f/BasicJava/StringBufferDemo_append_sb_app/?at=master

See also:
  • All JavaEE Viedos Playlist
  • All JavaEE Viedos
  • All JAVA EE Links
  • Servlets Tutorial
  • All Design Patterns Links
  • JDBC Tutorial
  • Java Collection Framework Tutorial
  • JAVA Tutorial
  • No comments:

    Post a Comment

    Google+ Followers

    Google+ Badge