分析如下所示的Java代码,编译运行后的输出结果是( )。 int i = 10, j = 18, k = 30; switch (j - i) { case 8: k++; case 9: k += 2; case 10: k += 3; default: k /= j; } System.out.println(k);
A.
31
B.
32
C.
33
D.
2
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】He said he did not come because he had a family emergency.______, I will apologize to him for my harsh words.