There is a huge difference between "break" and "continue".

break causes the loop to terminate at that point itself, whereas continue
causes the remaining statements in the loop to be skipped (not executed) and
goes back to check the condition. hope it is clear.

----- Original Message -----
From: "Jayant Kataria" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 5:35 PM
Subject: Re: exit from the current loop


Hi,
"continue" is what will take you out of the current iteration.

regards
Jayant

-----Original Message-----
From: Kuruba, Chandrashekar (Cognizant)
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:32 PM
To: [EMAIL PROTECTED]
Subject: Re: exit from the current loop


i guess break is also there in java which is one of the keyword

regards,
KCS

-----Original Message-----
From: karthik s [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: exit from the current loop


hi all,
  Is there any thing to exit from the current loop in Java as we hav
break in c++.
Rgds,
Karthik




_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

=========================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to