+/EE379K

programming paradigms

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

Joseph RyanFix 'default' switch arm bug36054c3

master
313 B13 linesraw
1public class Switch {
2    public static void main(String[] s) {
3        boolean z = false;
4        char x = 'a';
5        int y = 0;
6        switch (x) {
7        case 'q': z = true; break;
8        case 'f': int q = 1; // case fallthrough
9        case 'n': y += 2; break;
10        default: x += 1;
11        }
12    }
13}