| ... | ... | @@ -149,7 +149,8 @@ public void push(int element) throws StackIsFullException, NegativeElementExcept |
|
|
|
if (element < 0) throw new NegativeElementException();
|
|
|
|
|
|
|
|
this.elements[this.size] = element;
|
|
|
|
this.size += 1;
|
|
|
|
this.size += 1;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
:bulb: `throw` est terminal (l'exécution se termine ici), comme `return`, les `else` sont inutiles. |
|
|
\ No newline at end of file |