Skip to content

Commit

Permalink
done2
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael60193 committed Dec 21, 2024
1 parent 40ba96e commit 6fb61c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/core/basesyntax/ArrayList.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package core.basesyntax;

import java.util.Arrays;
import java.util.NoSuchElementException;

Expand Down Expand Up @@ -36,6 +37,7 @@ public void ensureIndex(int index) {
throw new ArrayListIndexOutOfBoundsException("Index " + index + " out of bounds");
}
}

@Override
public void add(T value) {
ensureCapacity();
Expand Down

0 comments on commit 6fb61c8

Please sign in to comment.