Java #26: How to Use The StringBuilder Function

//Programmer:Akinwale Owi
//Company:Dagba Computers
//Program Purpose:How to use the StringBuilder Function

package dagba.samples;

* @author Akin
public class DagbaSamples {

* @param args the command line arguments

public static void main(String[] args)
//Building the fast half of the String Builder
StringBuilder name = new StringBuilder(“Reed”);

//printing the first half to test

//Using append to add to name
name.append(” Richards”);

//printing out the new result of name
System.out.println(“My name is “+name);

}//end of main

}//end of public Dagba Class

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s