Class finished!
main()
Method
Since URLscan
has potential to be
used in other programs,
main()
should be placed in a separate class.
It is responsible for getting the file name from
the command line and creating the stream objects
BufferedReader
and
FileReader
.
Here is a skeletal main()
:
Finish the program by filling the blanks.
Will the program work correctly if there are no URLs in the input file?