TP11 & TP12
This commit is contained in:
BIN
APL2.1/TP12/Capture/Arithmetic.class
Normal file
BIN
APL2.1/TP12/Capture/Arithmetic.class
Normal file
Binary file not shown.
13
APL2.1/TP12/Capture/Arithmetic.java
Normal file
13
APL2.1/TP12/Capture/Arithmetic.java
Normal file
@@ -0,0 +1,13 @@
|
||||
public class Arithmetic {
|
||||
public static void crash() {
|
||||
System.out.println(1 / 0);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
crash();
|
||||
} catch (ArithmeticException e) {
|
||||
System.err.println(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user