CSE 341 Assignment 3 Solution (postscript)
October 27, 1998



Write and test a Java program that accepts a URL from the command line and prints out a list of all the links from that page. For example, here is a sample output from my program:

orcas% java WebWorm http://www.cs.washington.edu/education/courses/341/CurrentQtr/

Links found in http://www.cs.washington.edu/education/courses/341/CurrentQtr/
 href="mailto:borning@cs.washington.edu"
 href="http://www.cs.washington.edu/homes/hartline/"
 href="mailto:hartline@cs.washington.edu"
 href="general/overview.html"
 href="general/schedule.html"
 href="http://www.cs.washington.edu/education/syllabi/341.html"
 href="general/families.html"
 href="scheme/"
 href="java/"
 href="assignments/"
 href="http://www.cs.washington.edu/education/courses/341/98sp/index.html"
 href="http://www.cs.washington.edu/education/courses/341/98wi/index.html"
 href="http://www.cs.washington.edu/education/courses/341/97au/index.html"

Solution:
WebWorm.java
Output:
WebWorm.out



hartline@cs.washington.edu