CS 112 Lab 4
Exceptions
Due Wednesday, Feb. 27th 2008

For your fourth lab, you will play around with exceptions.

First, create the following Exception classes:
Next, create a class MyScanner, with the following methods:
Finally, create a main program that:

Grading

You will be graded on several criteria:

Coding standards 10
Program Decomposition 10

Be sure to do proper indentation & commenting.  Also, no magic numbers!  Use constants instead.

See the Coding Standards for more information

Working

Program correctly reads strings from existing file and prints them out:  20
Program correctly uses System.in if file given in command line parameter does not exist, or if command line parameter exists and file does not 20
Program correctly throws on empy strings & strings too long 20
Program correctly catches exceptions thrown by hasNext, does the correct thing 20

Submission

All file(s) required for your project should be in the folder https://www.cs.usfca.edu/svn/<username>/cs112/Lab4/