Adding/Removing an object from a class



I'm making a prison program in java and trying to write methods in a cell class that would add/remove prisoner objects from each specific cell. I tried using an Array List but I would need a new Array List for each cell. The program will be based on a GUI that allows you to select a cell and then choose to add a new prisoner or remove one that is already there.

Continue reading...