Question: Write a Java program that implements a multi-linked list structure. When your program starts up, it should build the structure from a file called names.txt.

Write a Java program that implements a multi-linked list structure. When your program starts up, it should build the structure from a file called names.txt. The format of the file is: name course

For example: Anthony Writing

Christopher Reading

Lauren Science

After building the structure, a menu should appear on the screen. The menu items should be : 1. Find all students in a course 2. Find all courses for a student 3. Add a student to a course 4. Exit. The user should be able to continue making choices until they choose to exit. When the system exits, the updated data should be written to a new file, names.txt. Input should NOT be case sensitive and the program should not fail or break. For example if a given student is not enrolled in a course, a message should be issued or if a course does not exist, this also should be taken into account. A user should not be allowed to add duplicate entries.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!