Declaring the Array List

   static ArrayList List_Of_Links = new ArrayList();

Adding to the List

         if (!duplicate)
         {
           System.out.println(" -- adding the link " + tempstring + " to the master list");
           List_Of_Links.add (tempstring);
         }

Processing the List

     for (int i=0; i<List_Of_Links.size(); i++)
     {
       search_file ((String) List_Of_Links.get(i));
     }