Here are the java files that have the solution to assignment 7:
This code uses the Keyboard class for reading user input. You also need the ir.jar file. To compile and run WebCrawler, you need access to this class.
Here is a simple web site for testing the program. If you run the web crawler on this site, your program should have the following output:
Starting URL:
http://facweb.cs.depaul.edu/cmiller/csc313/pageA.html
Site prefix:
http://facweb.cs.depaul.edu
Number of levels:
2
Traversing the tree...
Page A
Page B
Page C
Page E
Page F
Page D