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

For Loop Doubt

Bhalotia Kunal
Greenhorn

Joined: May 16, 2005
Posts: 9

Hi All,

Can we have a For loop Like this....

Where in Initialization statement we have true instead of Initialization statement.....


(Formatted)
[ May 16, 2005: Message edited by: Barry Gaunt ]
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Please format your code in future using tags.

Yes, you can have a for loop like that, did you compile and run it?

(you had better use proper character quotes, though)


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Bhalotia Kunal
Greenhorn

Joined: May 16, 2005
Posts: 9
Sorry Barry....

I will def format the Code in my next Post...

Thanks,
Kunal
 
jQuery in Action, 2nd edition
 
subject: For Loop Doubt
 
Similar Threads
Loops Confusion???
about unreachable statement