• 2022-06-06
    当n为何值时,下列程序段输出字符串second()switch(n) {case :0; System.out.println (“first”);case :1case :2; System.out.println (“second”);break;default: System.out.println (“end”); }
    A: 0
    B: 1
    C: 2
    D: 0 1 2 都可以