/media/sda-magnetic/david/Dok-15-2023-11-27/Dokumente-15-appended-2023-10-11/append-temporarly/Mathematiker1.java


01 public class Mathematiker {
02     public static void main(String[] args) {
03         try {
04             try {
05                 int i = 7 % 5;
06                 if ((i / (i % 2)) == 1) {
07                     throw new Exception();
08                 }
09                 System.out.println("Ich mag");
10             } catch (Exception e) {
11                 System.out.println("Ich liebe");
12                 try {
13                     if ((7 % 6 / (7 % 6 % 2)) == 1) {

14                         throw new Exception();
15                     }
16                     System.out.println("nichts mehr, als");
17                 } catch (Exception u) {
                        
18                     System.out.println("es,");
19                 }
20             }
21             System.out.println("wenn");
22             try {
23                 int i = true & false ? 0 : 1;
24                 switch (i) {
25                 case 0:
26                     System.out.println("eine Formel");
27                 case 1:
28                     System.out.println("ein Programm");
29                 default:
30                     throw new Exception();
31                 }
32             } catch (ArithmeticException e) {
33                 System.out.println("abbricht.");
34             } catch (Exception e) {
35                 System.out.println("funktioniert.");
36             } finally {
37                 int i = false && true ? 0 : 2;
38                 switch (i) {
39                 case 1:
40                     System.out.println(";)");
41                 default:
42                     throw new Exception();
43                 }
44             }
45         } catch (ArithmeticException e) {
46             System.out.println(":(");
47         } catch (Exception e) {
48             System.out.println(" ");
49         }
50     }
51 }