【简答题】请阅读程序,写出程序的运行结果__________。 int x = 2; switch (x) { case 1: System.out.print(1); break; case 2: System.out.print(2); case 3: System.out.print(3); break; case 4: System.out.print(4); }
【简答题】请阅读程序,写出程序的运行结果__________。 int x = 2; switch (x) { case 1: System.out.print(1); break; case 2: System.out.print(2); break; case 3: System.out.print(3); break; case 4: System.out.print(4); break; }
【简答题】请阅读程序,写出程序的运行结果__________。 int x = 2; switch (x) { case 1: System.out.print(1); case 2: case 3: System.out.print(3); case 4: System.out.print(4); }