1ArrayList<...> a = new ArrayList<...>();
2
3// Add elements to list.
4
5// Generate an iterator. Start just after the last element.
6ListIterator li = a.listIterator(a.size());
7
8// Iterate in reverse.
9while(li.hasPrevious()) {
10 System.out.println(li.previous());
11}
12