# | Line 162 | Line 162 | public class PriorityQueue<E> extends Ab | |
---|---|---|
162 | private void fillFromSorted(Collection<? extends E> c) { | |
163 | for (Iterator<? extends E> i = c.iterator(); i.hasNext(); ) { | |
164 | int k = ++size; | |
165 | < | if (k >= queue.length) |
165 | > | if (k >= queue.length) |
166 | grow(k); | |
167 | queue[k] = i.next(); | |
168 | } | |
# | Line 176 | Line 176 | public class PriorityQueue<E> extends Ab | |
176 | private void fillFromUnsorted(Collection<? extends E> c) { | |
177 | for (Iterator<? extends E> i = c.iterator(); i.hasNext(); ) { | |
178 | int k = ++size; | |
179 | < | if (k >= queue.length) |
179 | > | if (k >= queue.length) |
180 | grow(k); | |
181 | queue[k] = i.next(); | |
182 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |