We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c59cc05 commit 422959dCopy full SHA for 422959d
src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java
@@ -25,6 +25,7 @@ public class DynamicArray<E> implements Iterable<E> {
25
* Constructor with initial capacity.
26
*
27
* @param capacity the starting length of the desired array
28
+ * @throws IllegalArgumentException if the specified capacity is negative
29
*/
30
public DynamicArray(final int capacity) {
31
if (capacity < 0) {
0 commit comments