Results 1 to 3 of 3
Thread: Empty while loop
- 01-28-2012, 04:10 AM #1
Senior Member
- Join Date
- Jan 2012
- Posts
- 210
- Rep Power
- 2
- 01-28-2012, 04:18 AM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,546
- Rep Power
- 11
Re: Empty while loop
Yes. In general {} is a perfectly well defined block.Is ok to use an empty while loop?
It is another question whether you want to do this. In your example you won't get past the empty block until guess(word) returns false. Is this what you want to happen?
- 01-28-2012, 04:37 AM #3
Senior Member
- Join Date
- Jan 2012
- Posts
- 210
- Rep Power
- 2
Similar Threads
-
Entering in the loop,even if the value is null or empty
By swati.jyoti in forum New To JavaReplies: 9Last Post: 09-08-2010, 05:10 PM -
Empty Form?
By Vorfin in forum New To JavaReplies: 13Last Post: 07-04-2010, 11:54 PM -
Empty FileInputStream..
By dudejonne in forum New To JavaReplies: 5Last Post: 11-08-2009, 08:21 PM -
Why is this stakc empty?
By jigglywiggly in forum New To JavaReplies: 1Last Post: 10-09-2009, 06:22 AM -
empty arrays.
By circuspeanuts in forum New To JavaReplies: 11Last Post: 04-06-2009, 07:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks