aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes do...while() statement question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "do...while() statement question" Watch "do...while() statement question" New topic
Author

do...while() statement question

zheng li
Ranch Hand

Joined: Jun 16, 2009
Posts: 56

why while(w < 1) can be put directly after do?
what else can be put there?
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9311
    
  17

This is how the program actually works

Remember, that while in a do-while is followed by a semicolon...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
zheng li
Ranch Hand

Joined: Jun 16, 2009
Posts: 56
thank you.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: do...while() statement question