+/EE379K

programming paradigms

git clone https://git.julia.blue/+/EE379K

Joseph RyanTweak docs99be18a

master
1.3 KiB48 linesraw
1public class Comprehensive {
2    public static void main(String[] s) {
3        int y = 4;
4        char x = 'y';
5        boolean z = true;
6        for (int i = 0; i < 10; i++) {
7            if (y > 5) {
8                x = 'z';
9            } else if (y == 6 || x < 'f' && z) {
10                y = 2;
11                x = (char)y;
12            } else {
13                z = !z;
14                ++y;
15            }
16        }
17        while (z) {
18            switch (x) {
19            case 'q': z = true; break;
20            case 'f':         // case fallthrough
21            case 't': y -= 3; // double fallthrough
22            case 'n': y += y > (int)x ? (int)3.14 : y % 2; break;
23            default: x += 1;
24            }
25        }
26        int count = 0;
27        if (x % y % 4 == 1)
28            return;
29        switch (x) { case 1: } // with no default
30    outer:
31        do {
32            ++count;
33            for (int i = 0; i < 10; i++) {
34            inner:
35                for (int j = 0; j < 10; j++) {
36                    if (i % j == 0) {
37                        break inner;
38                    }
39                    if (i + j == 14) {
40                        continue outer;
41                    }
42                }
43            }
44        } while (count < 3);
45    }
46
47    public static void mmm() { System.out.println("mmm"); }
48}