This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes strange loop behavior Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "strange loop behavior" Watch "strange loop behavior" New topic
Author

strange loop behavior

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400


well i know when we left blank the condition statement of for loop is always true.
why its printing "1" in infinity loop??


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

ah i get it now, the first part of for loop is always execute once


by the way, i would like to wish happy new year to all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: strange loop behavior