int j=2;
switch(j){
case 2:
System.out.println("Value is two.");
case 2+1:
System.out.println("Value is three.");
break;
default:
System.out.println("Value is "+j);
break;}
A. Value is two.
B. Value is two. Value is three.
C. Value is two. Value is three. Value is 2
D. 编译错误
满分:2分♦
(责任编辑:admin) |