void () { doTest("import java.util.*;" + "class ReverseListIterator<T> implements Iterator<T> {" + " private ListIterator<T> iterator;" + " public ReverseListIterator(List<T> list) {" + " this.iterator = list.listIterator(list.size());" + " }" + " public boolean hasNext() {" + " return iterator.hasPrevious();" + " }" + " public T next() {" + " return iterator.previous();" + " }" + " public void remove() {" + " iterator.remove();" + " }" + "}"); }