Skip to content

Commit 99c5274

Browse files
committed
call the reallocate() method
1 parent 23993fa commit 99c5274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/queue/usingArray/ArrayQueue.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public int size() {
8686
@Override
8787
public boolean offer(E e) {
8888
if (size == capacity) {
89-
89+
reallocate();
9090
}
9191
return false;
9292
}

0 commit comments

Comments
 (0)