File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

For Loop Doubt

Bhalotia Kunal

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.....

[ 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

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

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

I agree. Here's the link:
subject: For Loop Doubt
It's not a secret anymore!