code: public int lastIndexOf(E object, int to) {
          Object[] snapshot = elements;
          return lastIndexOf(object, snapshot, 0, to);
      }
docs: Searches this list for {@code object} and returns the index of the last
  occurrence that is before {@code to}.
  
  @return the index or -1 if the object was not found.