I have an Employee and a Job class, only up to 10 employees can be attached to a job so I store all the employees doing a specific job in the job class within a List (of max size = 10)
The problem is, that the program is meant to allow all the employees to be printed onto the terminal and since all the employees are being stored like this, each employee will get printed several times.
The only solution I can think to this is to initially have all "registered employees" stored somewhere as well as a list of employees per job. But this will make it even more difficult; when employees need to be deleted, they will need to be deleted from the initial list as well as the list of employees attached to a job.
Any helpful suggestions/ideas?
Edited 5 Years Ago by asif49: n/a