import javax.swing.*;
// import java.util.Date;
public class StrTest
{
public StrTest( )
   {
   String testStr = new String( " " );

   //Date  today  = new Date();
   //System.out.println( today );

   while(true)
      {
	   testStr = JOptionPane.showInputDialog("Enter a string");
    	
	   System.out.println( testStr.concat("ing") );
	   System.out.println( testStr.toLowerCase() );
	   System.out.println( testStr.toUpperCase() );
	   System.out.println( testStr.indexOf( "s" ) );
	   System.out.println( testStr.replace('s', 'q'));
	
      if ( testStr.equalsIgnoreCase("exit") == true )
	      {
		   System.out.println("exiting");
         System.exit(0);
		   }  // end if
      } // end while

   } // end strTest constructor


public static void main (String [] args )
   {
   StrTest app = new StrTest();
   } // end main
} // end class