text: public E remove(int location) {try {ListIterator<E> it = listIterator(location);E result = it.next();it.remove();return result;} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}}