I have two classes. At the moment, you can save 99 entries to a .txt file. Obviously I want to expand upon this. It would be good if the following from ExamGradesGUI were an arraylist rather than an array:
String[] firstName = new String[99];
String[] lastName = new String[99];
String[] subjectUnit = new String[99];
double[] examMark = new double[99];
I managed to start off by declaring the array as below (for firstName):
ArrayList<String> firstName = new ArrayList<String>();
Then, I was not sure how to make it work with my get and set methods as obviously they are still in array form. If someone could help I would appreciate it. Thanks