# | Line 262 | Line 262 | public class LinkedList<E> | |
---|---|---|
262 | * @throws NullPointerException if the specified collection is null. | |
263 | */ | |
264 | public boolean addAll(int index, Collection<? extends E> c) { | |
265 | < | if (index < 0 || index >= size) |
265 | > | if (index < 0 || index > size) |
266 | throw new IndexOutOfBoundsException("Index: "+index+ | |
267 | ", Size: "+size); | |
268 | Object[] a = c.toArray(); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |