Accessing same Array and/or File across 4 different classes in Eclipse : <p>I just had a question for a program that I am creating. So to provide background, I am creating a program using the GUI creator on eclipse. So the program involves creating a list of Employee objects (Employee is a separate class) and managing that list, easy enough. I am using a List to store the various Employee objects. Now here is where the issue arrives. I need to access this List across 4 different classes in my project folder so I thought about modifying the constructors of each class to accept a List as parameter. But then I would have to initialize the list within the constructor to a new list erasing any data each time. So my next solution was appending to a file each time and just reading from there. But where the issue arises is when I would need to access this File across 4 different classes. This program will be made on my computer and used on many different computers for testing purposes. So i would like to ask, is there any way I can be able to append to/read from the same file from all 4 different classes and also to what directory will the file be created on the different computers since I won't be able to point the file to be created in a specific directory? I hope this isn't too vague and I can always clarify if needed. Any help would be greatly appreciated as this is due by Friday. Thanks in advance. </p>
