/*
 *2013-09-19
 *Loop Tests and Strings - You Do Its: pg 380
 *Bradley Forney
 *CIS 127
 *Professor: Craig Sharp
 * 
 *You Do Its pg. 328, pg. 335, pg. 355, pg. 369, pg. 373, & pg. 380
 *
 */

import javax.swing.*;
 
 public class DemoStringBuilder
 {
	public static void main (String[] args)
	{
		StringBuilder str = new StringBuilder("singing");
		print(str);
		str.append(" in the dead of ");
		print(str);
		str.insert(0, "Black");
		print(str);
		str.insert(5, "bird ");
		print(str);
		str.append("night");
		print(str);
	}
	public static void print(StringBuilder s)
	{
		System.out.println(s);
	}
}