Practicing with ArrayLists

Introduction

The goal of this lab is to practice working with ArrayLists by developing a class that can be used to randomly generate words from a particular part-of-speech (POS). Never again will you be stumped while trying to come up with a hilarious noun during a game of MadLibs.

Resources

You may find it helpful to refer to the documentation for the following classes:

Files

The following files are provided:

Instructions

Download the files above and complete POSDictionary.java so that all methods conform to the docstrings. Test your completed file by running the two provided application programs. Since these are command-line applications, you should execute them from the terminal, rather than running them from inside Eclipse. Refer to the ALL CAPS suggestions while completing your implementation.

Submitting

Submit your completed version of POSDictionary.java through Web-CAT. Style checking is turned off, and you have an unlimited number of submissions. Here are the testing files in case you would prefer to like to run the tests locally before uploading to Web-CAT: