الرجوع
تسجيل الدخول
int outer = 2, inner = 1;
switch (outer) {
    case 1:
        System.out.println("Outer 1");
        break;
    case 2:
        switch (inner) {
            case 1:
                System.out.println("Inner 1");
                break;
            case 2:
                System.out.println("Inner 2");
                break;
        }
        break;
    case 3:
        System.out.println("Outer 3");
        break;
}

.