Question: Write a program that uses a HashSet of strings to keep track of a list of chores that you have to accomplish today. The user

Write a program that uses a HashSet of strings to keep track of a list of chores that 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) use the iterator to print the list of chores to the screen; (4) delete an item from the list; and (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.

Step by Step Solution

3.40 Rating (181 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Java program that implements the functionality described above using a HashSet of strings ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Data Structures and Other Objects Using Java Questions!