What will the following code print?
void crazyLoop()
{
int c = 0;
JACK: while (c < 8)
{
JILL: System.out.println(c);
if (c > 3) break JACK; else c++;
}
}
About Question com.enthuware.ets.scjp.v5.2.150
Moderator: admin
Re: About Question com.enthuware.ets.scjp.v5.2.150
Looks like it prints :
0
1
2
3
4
and it is ok.
0
1
2
3
4
and it is ok.
Who is online
Users browsing this forum: Google [Bot] and 34 guests