original plan was to have an array of returnobjects so could add variable next when doing the linked list. reread the notes and realised can make my own classes so for the linked list will use my own node class. for arraylist can just have object array. constructor setsall objects to empty string. this is because documentation says the default value of object is null and this list is not allowed to have null values