I have finally gotten this project to an operable level and have need of some help in iterating through the ArrayList created.
I think I have a solution for iterating forward but it doesn't quite work right in that when the end of the list is reached it (of course) throws a NoSuchElement error. I am unsure of what conditions need to be set so that the list starts back at the beginning.
Further I do not not know exactly how to iterate backwards through the list (as is demonstrated by the method BookActions.getPreviousCon
The end result I am looking for is to be able to iterate through the list in both directions, from the index it is at currently.
Also, I would like to be able to delete that contact as well as perform a search to find any specific contact based on the last name.
I have included the files I am using, as well as input and output files. The help file I am leaving out. AddressBook.java AddressBookGUI.java ContactBook.java BookActions.java Person.java Friend.java Address.java input.txt loadFile.txt