To end this thread:
Why (need only WebSpider.java be changed)? I asked earlier in this thread: www-2.cs.cmu.edu/afs/andrew/course/15/211/www/hw5/writeup/webcrawler.html says:
"only WebSpider.java need be modified"
but I say WebIndex.java needs to be modified because: 1. www-2.cs.cmu.edu/afs/andrew/course/15/211/www/hw5/pub/doc/WebIndex.html and WebIndex.java say, "However, at the moment it [WebIndex.java] is only a stub, to be filled in by you as part of HW5." 2. the README file in the provided hw5.jar says Classes that you must modify for HW5 ... WebIndex.java ..." 3. WebSpider.java makes and utilizes an object of type WebIndex.java (called "web") so WebIndex.java must be written in full.
Questions: 1. if WebSpider.java is the only file needing changing, tell me why WebIndex.java need not be changed, or 1. if WebSpider.java is not the only file needing changing, confirm.
Final word: I'm going to modify WebIndex.java anyway and use it, but reassurance would be nice. |