update
This commit is contained in:
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic1.class
Normal file
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic1.class
Normal file
Binary file not shown.
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic1.java
Normal file
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic1.java
Normal file
@@ -0,0 +1,10 @@
|
||||
public class Arithmetic1{
|
||||
public Arithmetic1(){
|
||||
try{
|
||||
int erreur = 8/0;
|
||||
}
|
||||
catch(ArithmeticException e1){
|
||||
System.out.println("division par 0");
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
public class Arithmetic1{
|
||||
public Arithmetic1(){
|
||||
int erreur = 8/0;
|
||||
}
|
||||
}
|
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic2.class
Normal file
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Arithmetic2.class
Normal file
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
public class Arithmetic2{
|
||||
public Arithmetic2(){
|
||||
int erreur = 8/0;
|
||||
}
|
||||
}
|
@@ -0,0 +1,5 @@
|
||||
public class Arithmetic{
|
||||
public static void main(String[] args){
|
||||
int erreur = 8/0;
|
||||
}
|
||||
}
|
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.class
Normal file
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.class
Normal file
Binary file not shown.
5
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.java
Normal file
5
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.java
Normal file
@@ -0,0 +1,5 @@
|
||||
public class Q2Main1{
|
||||
public static void main(String[] args){
|
||||
Arithmetic1 erreur = new Arithmetic1();
|
||||
}
|
||||
}
|
5
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.java~
Normal file
5
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main1.java~
Normal file
@@ -0,0 +1,5 @@
|
||||
public class Arithmetic{
|
||||
public static void main(String[] args){
|
||||
int erreur = 8/0;
|
||||
}
|
||||
}
|
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.class
Normal file
BIN
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.class
Normal file
Binary file not shown.
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.java
Normal file
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.java
Normal file
@@ -0,0 +1,10 @@
|
||||
public class Q2Main2{
|
||||
public static void main(String[] args){
|
||||
try{
|
||||
Arithmetic2 erreur = new Arithmetic2();
|
||||
}
|
||||
catch(ArithmeticException e1){
|
||||
System.out.println("division par 0");
|
||||
}
|
||||
}
|
||||
}
|
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.java~
Normal file
10
DEV/DEV2.1/TP10_exceptions.java/Q2_Capture/Q2Main2.java~
Normal file
@@ -0,0 +1,10 @@
|
||||
public class Q2Main1{
|
||||
public static void main(String[] args){
|
||||
try{
|
||||
Arithmetic2 erreur = new Arithmetic2();
|
||||
}
|
||||
catch(ArithmeticException e1){
|
||||
System.out.println("division par 0");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user