本帖最后由 龏鈊づ廱鵆ぐ 于 2013-10-19 17:22 编辑
1. 以下代码段的输出结果是?( b) public class MyClass{ public static void main(String argv[]){ inti; intj; outer:for (i = 1; i < 3; i++) inner: for(j = 1; j < 3; j++) { if (j == 2) continue outer; System.out.println ("Value for i = " +i + " Value for j = " +j); } } } A. Value for i = 1 value for j = 1 B. Value for i = 2 value for j = 1 C. Value for i = 2 value for j = 2 D. Value for i = 3 value for j = 1 我运行了为什么老是还给错...谁能告诉下过程?
|