执行下列Java语句:int x = 1; switch (x+1 ) { case 1: System.out.print(One ); case 2: Syst

大学网课 已帮助 人

执行下列Java语句:int x = 1; switch (x+1 ) { case 1: System.out.print("One" ); case 2: System.out.print("Two" ); case 3: System.out.print("Three" ); default: System.out.print("Error" ); } 显示器上将显示()。

A.One

B.Two

C.TwoThree

D.TwoThreeError

执行下列Java语句:int x = 1; switch (x+1 ) { case 1: System.out.print(One ); case 2: Syst

热搜:java int类型的取值范围