Skip to content

Commit 524235a

Browse files
committed
update the value at particular index for the array theData
1 parent a45c582 commit 524235a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/queue/usingArray/ArrayQueue.java

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ public boolean offer(E item) {
9090
}
9191
size++;
9292
rear = (rear + 1) % capacity;
93+
theData[rear] = item;
9394
return false;
9495
}
9596

0 commit comments

Comments
 (0)