这一页的Java程序代码都代表一份完整的源文件。你的任务是要扮演编译器角色并判断程序输出会是哪一个?
class Output {
public static void main (String [] args) {
Output o = new Output();
o.go();
}
void go() {
int y = 7;
for(int x = 1; x < 8; x++) {
y++;
if (x > 4) {
System.out.print(++y + " ");
}
if (y > 14) {
System.out.println(" x = " + x);
break;
}
}
}
} 