/*
 * @topic T10020 StringBuilder demo 1/30/2014
 * @brief main driver program
*/
package week02demo2;

public class AppMain {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String str = "Hello";
        StringBuilder strBuilder = new StringBuilder( 0 );
        strBuilder.append( "HelloHelloHello" );
        //strBuilder.append( str );
        //strBuilder.append( str );
        //strBuilder.setLength( 25 );
        char[] tempArray = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' };
        strBuilder.append( "                               ".substring(15) );
        strBuilder.append( tempArray );
        System.out.println( "stBuilder == \"" + strBuilder + "\"" );
        System.out.println( "stBuilder.capacity() == " + strBuilder.capacity() );
    }
}