Код: Выделить всё
List strings = Arrays.asList("1", "2", "3");
ListIterator listIterator = strings.listIterator();
String first = listIterator.next(); // 1
String second = listIterator.next(); // 2
String third = listIterator.next(); // 3
String fourth = listIterator.previous(); // 3 again
Код: Выделить всё
previous()
Как мне обойти это?
Java 8, Apache , Гуава
Подробнее здесь: https://stackoverflow.com/questions/793 ... epetitions