BUT2/DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.java

11 lines
206 B
Java
Raw Normal View History

2023-10-23 13:23:36 +02:00
public class Q2Main2{
public static void main(String[] args){
try{
Arithmetic2 erreur = new Arithmetic2();
}
catch(ArithmeticException e1){
System.out.println("division par 0");
}
}
}