We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9719fdd commit c1f62daCopy full SHA for c1f62da
src/queue/usingArray/ArrayQueue.java
@@ -124,5 +124,6 @@ public E peek() {
124
@SuppressWarnings("unchecked")
125
private void reallocate() {
126
int newCapacity = 2 * capacity;
127
+ E[] newData = (E[]) new Object[newCapacity];
128
}
129
0 commit comments