This commit is contained in:
EmmanuelTiamzon
2025-09-30 09:43:41 +02:00
parent f7de13bc2a
commit 7019a3b7ea
176 changed files with 9458 additions and 149 deletions

View File

@@ -0,0 +1,15 @@
public class Capture {
public static int ArithmeticPB(int val) {
return val/0;
}
public static void main(String[] args) {
try {
int res = ArithmeticPB(5);
System.out.println(res);
} catch(ArithmeticException e) {
System.err.println("cannot divide by 0");
}
}
}