Skip to content

Commit 6e0ca87

Browse files
committedSep 5, 2021
add some description as comment
1 parent 6cc5cb9 commit 6e0ca87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/queue/usingArray/ArrayQueue.java

+4
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,8 @@ public E peek() {
115115
}
116116

117117
// Private Methods
118+
/** Double the capacity and reallocate the data.
119+
* @pre The array is filled to capacity.
120+
* @post The capacity is doubled and the first half of the expanded array is filled with data.
121+
* */
118122
}

0 commit comments

Comments
 (0)
Please sign in to comment.