1. Implement a generic class for a sequence of Java objects. You can store the objects in an array (as in Section 3.3) or in a linked list (as in Section 4.5). The class should also implement the Iterable interface.
2. Write a program that uses a bag of strings to keep track of a list of chores you have to accomplish today. The user of the program can request several services: (1) Add an item to the list of chores; (2) ask how many chores are in the list; (3) print the list of chores to the screen; (4) delete an item from the list; (5) exit the program.
If you know how to read and write strings from a file, then have the program obtain its initial list of chores from a file. When the program ends, it should write all unfinished chores back to this file.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here