How do I use a ListIterator to go through a List backwards?

John Zukowski

List list = ...;
ListIterator iterator = list.listIterator(list.size());
while (iterator.hasPrevious()) {
  Object element = iterator.previous();
  // Process element
}
About | Sitemap | Contact