BUT2/DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic1.java
2023-10-23 13:23:36 +02:00

11 lines
170 B
Java

public class Arithmetic1{
public Arithmetic1(){
try{
int erreur = 8/0;
}
catch(ArithmeticException e1){
System.out.println("division par 0");
}
}
}