APL/APL2.1/TP12/Capture/Arithmetic.java

13 lines
275 B
Java
Raw Normal View History

2022-04-12 17:16:22 +02:00
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);
}
}
}