Exceptions

Modify the Dictionary Project so that the Dictionary class throws IllegalArgumentException exceptions and IllegalStateException exceptions where appropriate. Modify DictionaryTest by adding try catch statements to handle exceptions appropriately. You may modify the return types of existing methods.

Your program must follow the class Coding Standards.

Preconditions:

    • None

You must hand in the following on separate pages stapled in this specified order:

    1. The source code for the Dictionary class.
    2. The source code for the DictionaryTest class.