Skip to content
Snippets Groups Projects
Commit 66bfd4bc authored by SAIL Mohamed amine's avatar SAIL Mohamed amine
Browse files

exo1 pas fini

parent 76fdbe70
No related branches found
No related tags found
No related merge requests found
Pipeline #17400 failed
......@@ -64,9 +64,15 @@ public class Vector {
return elements.length;
}
public int size() { return 0; }
public boolean isEmpty() { return false; }
public void add(int element) { }
public int size() { return this.elements.length; }
public boolean isEmpty() {
return if(this.size >0);
if (this.size > 0){return true;} ;
return false;
}
public void add(int element) {
elements.length =;
}
public void set(int index, int element) { }
public int get(int index) { return 0; }
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment