File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes continue? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "continue?" Watch "continue?" New topic
Author

continue?

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 659

I've noticed that the command prompt does not accept negative numbers whether the statement (commented below) is commented or left without comments. What is the use of continue? Were there any applications where you had to use them, and, can you provide examples or code snippets?


Jon
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

Branching Statements


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Jim Hoglund
Ranch Hand

Joined: Jan 09, 2008
Posts: 525
I find a labeled "continue'' to be very helpful when breaking out of nested loops.
I also use "break" with a label, except from within a switch. Always using labels
is just my conservative nature. I like to see exactly where the code will land.

Jim ...


BEE MBA PMP SCJP-6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: continue?
 
Similar Threads
Writing an output of a java application to a File.
Help! Need to write out a amount after string has certain values in it. Must add and read file.
Need help with Incompatible type error
Using percent Modulus to calculate total number of even numbers from user input
How can i browse 3 files (same file format, exp: .txt) and process it ?