I'm trying to implement this interface but when I run through the tester I receive.
"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index 6 out of bounds for length 4 at ListOfStrings.addLast(ListOfStrings.java:75)"
Any idea how I could change addLast?
/**
* Adds the given element to the end of this list.
*
* @param str element to be added to the end of this list
*/
@Override
public void addLast(String str) {
list[SIZE] = str;
SIZE++;
}