static public int visit(File thisFile)    {

	int count = 0;
	LinkedList<File> fileList = new LinkedList<File>();

	String pathname = thisFile.getAbsolutePath();
    
	fileList.add(thisFile);

	while (fileList.size() > 0) {

	    File file = fileList.removeFirst();

	    pathname = file.getAbsolutePath();
	    System.out.println("path name " + pathname);
	    if (file.isFile()) {
		System.out.println(file.getName());
		count ++;
	    } else { // must be a directory
		System.out.println("---Entering directory: " + file.getName());
		String[] fileNameList = file.list();
		for (int i = 0; i < fileNameList.length; i++) {
		    File nextFile = new File(pathname + "/" + fileNameList[i]);
		    String FileName=nextFile.toString();
		    if(FileName.endsWith(".html")){
		    	fileList.add(nextFile);
		    }
		}
	    } // if-then-else
	} // while

	return count;
    }