// Arup Guha
// 7/9/2010
// A Simple Demonstration of the String Class

public class MyStringTest {

    public static void main(String[] args) {

        String test1 = new String("Happy Birthday");
        String test2, test3, test4;			   

        test2 = test1.concat(" Trisha!");		   
        System.out.println("test1 = "+test1);        
        System.out.println("test2 = "+test2);        

        test3 = test1.replace('H', 'M');           
        test3 = test3.replace('a', 'e');            
        test3 = test3.replace('p', 'r');           
        System.out.println("test1 = "+test1);       
        System.out.println("test3 = "+test3);       

        test4 = test2.substring(11, 20);            
        System.out.println("test2 = "+test2);        
        System.out.println("test4 = "+test4);        
    }
}
