changed .length to .size() for checking out of index errors as realise when the specification says throw an appropriate error when index is greater than the size, it is referring to size as in number of elements in the list and not in terms of length of the array. will have to change add methods as well now
fixed typo theActualList.size() to this.size() and added some tests to make sure add method is working. it just occured to me that if a user just wants to add an int, the list cannot distinguish between an int that is being added and an int which is an index
simplified and tidyed up isNearlyFull method and corrected a bug that filled new array of twice the size with empty string instead of the word empty as i had been doing before
more successful tests. was able to add a matrix from day6 into my arraylist
test shows that array was successfully able to double in size when was starting to get full
fixed add method that takes an index parameter
correct remove method in ArrayList. As 1 item is removed, the last element in the list will be null so turned it into an empty string