Skip to content

Commit b720344

Browse files
committed
add a for loop till size
1 parent 2421714 commit b720344

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/queue/usingArray/ArrayQueue.java

+3
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,8 @@ private void reallocate() {
126126
int newCapacity = 2 * capacity;
127127
E[] newData = (E[]) new Object[newCapacity];
128128
int j = front;
129+
for (int i = 0; i < size; i++) {
130+
131+
}
129132
}
130133
}

0 commit comments

Comments
 (0)