import java.util.ArrayList;


public class ArrayListDriver

   {

   public static void main( String[] args )

      {

      ArrayList<String> songs = new ArrayList<String>();

      

      songs.add( new String("Faithfully") );

      songs.add( new String("Don't Stop Believin'") );

      songs.add( new String("Lights") );

      songs.add( new String("Lights") );

      songs.add( new String("Anyway You Want It") );

      songs.add( new String("Wheel in the Sky") );

         

      System.out.println( "\nPrinting before removals..." );   

      for( String s : songs )

         {

         System.out.println( s );   

         } // end for each    

      System.out.println("\n");

      

      for( int index = 0; index < songs.size(); index++ )

      {

      if( songs.get( index ).equals( "Lights" ) );

         {

         songs.remove( index );

         index--;

         } // end if

      } // end for    

         

      System.out.println( "\nPrinting after removals..." );   

      for( String s : songs )

         {

         System.out.println( s );   

         } // end for each   

         

      } // end method main    

       

   } // end class ArrayListDriver