19 lines
574 B
Plaintext
19 lines
574 B
Plaintext
[srivasta@salle225-13 TP1]$ java MonInt
|
|
3 trois
|
|
4 quatre
|
|
9 neuf
|
|
3 (neuf divisé par trois)
|
|
0 (trois divisé par quatre)
|
|
java.lang.IllegalStateException: Comme disait Sacha Guitry, je ne suis pas superstitieux mais on ne sait jamais.
|
|
java.lang.ArithmeticException: / by zero
|
|
java.lang.NullPointerException: la classe denominateur ne peut pas être null
|
|
|
|
[srivasta@salle225-13 TP1]$ java -ea MonInt
|
|
3 trois
|
|
4 quatre
|
|
9 neuf
|
|
3 (neuf divisé par trois)
|
|
Exception in thread "main" java.lang.AssertionError
|
|
at MonInt.divise(MonInt.java:36)
|
|
at MonInt.main(MonInt.java:82)
|