class Test
{
public static void main(String args[])
{
int i=0, j=0;
X1: for(i = 0; i < 3; i++)
{
X2: for(j = 3; j > 0; j--)
{
if(i < j) continue X1;
else break X2;
}
}
System.out.println(i+" "+j);
}
Answer is 33 not 03 as stated.please rectify
About Question com.enthuware.ets.scjp.v6.2.657 :
Moderator: admin
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.657 :
Hello,
The correct answer 3 3 is indeed displayed by the simulator as well.
HTH,
Paul.
The correct answer 3 3 is indeed displayed by the simulator as well.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 1
- Joined: Wed Apr 21, 2021 10:50 am
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.657 :
YOu are right, I as getting crazy!!! Fix it!!
-
- Site Admin
- Posts: 10058
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.657 :
Fix what??
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 105 guests