CS 120A
Fall 2001, Instructor: Jeffrey
Horn
HOMEWORK 6:
"Strings, Files, and Web Crawling"
-
Handed out Wed. Nov. 28, 2001
-
Due: Thursday, 6, 2001, BY CLASS TIME!!!
-
Purpose: LEARN
- How to read and write text files
- How to manipulate strings and characters
- How to get web pages from the web
- How to use a "main" method to test your other
methods
- How to put it all together into a web crawler
-
Assignment:
-
Look at the example code (here).
-
Write your own class that iimplements the StringFilter
interface (here).
-
Name your class "yourname.java".
-
Test it with a main method that reads in a file and runs
your methods on it.
-
ONCE YOU ARE SURE IT WORKS in main (I will be running
your code as an app. to test this!), then put it into our webcrawler code we are
developing in class (here
is the latest).
-
Put your name, date, the class, and the assignment number
in comments at the TOP of your source code.
-
Comment EVERY single new variable AND method that you
create. For this assignment, I WILL be picky about the
CONTENT of your comments. So be brief, but descriptive!
-
Turn in via WebCT.
-
Grading rubric:
- <= D for
- <= C for
- <=B for
- <= A- for
- <= A for