Tuesday 26 April 2016

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


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

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


public class StringBuilderDemo
{

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

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

Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/ea6705eb8d861d880326570ef3992b3db7646c7d/BasicJava/StringBuilderDemo_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