# | Line 714 | Line 714 | public class ArrayList<E> extends Abstra | |
---|---|---|
714 | throw new ConcurrentModificationException(); | |
715 | } | |
716 | } | |
717 | + | |
718 | public E previous() { | |
719 | try { | |
720 | int i = cursor - 1; | |
721 | < | E next = get(i); |
721 | > | E prev = get(i); |
722 | lastRet = i; | |
723 | cursor = i; | |
724 | < | return next; |
724 | > | return prev; |
725 | } catch (IndexOutOfBoundsException ex) { | |
726 | throw new NoSuchElementException(); | |
727 | } finally { | |
# | Line 758 | Line 759 | public class ArrayList<E> extends Abstra | |
759 | expectedModCount = modCount; | |
760 | } | |
761 | } | |
761 | – | |
762 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |