Skip to content
Snippets Groups Projects
Commit f4f0b4e1 authored by RADELLAH Badr's avatar RADELLAH Badr
Browse files

Ex1 tp1

parent 3d1a0981
Branches
No related tags found
No related merge requests found
Pipeline #31102 canceled
......@@ -50,6 +50,7 @@ public class Vector {
elements = Arrays.copyOf(elements, newCapacity);
}
public void resize(int newSize) {
ensureCapacity(newSize);
if (newSize > size) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment