# | Line 7 | Line 7 | package java.util; | |
---|---|---|
7 | import java.io.Serializable; | |
8 | import java.util.function.Consumer; | |
9 | import java.util.stream.Stream; | |
10 | – | import java.util.stream.Streams; |
10 | ||
11 | /** | |
12 | * Resizable-array implementation of the {@link Deque} interface. Array | |
# | Line 882 | Line 881 | public class ArrayDeque<E> extends Abstr | |
881 | return null; | |
882 | } | |
883 | ||
884 | < | public void forEach(Consumer<? super E> consumer) { |
884 | > | public void forEachRemaining(Consumer<? super E> consumer) { |
885 | if (consumer == null) | |
886 | throw new NullPointerException(); | |
887 | Object[] a = deq.elements; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |