Java语言环境下,运行以下代码,输出的结果是()inta=0while...
Java语言环境下,运行以下代码,输出的结果是( )
int a = 0
while (a < 10) {
switch (a) {
case 2:
a += 2
case 0:
a += 2
case 4:
a += 4
default:
a += 4
}
}
System.out.println(a)