Re: (cast) iteration not working???
From: Sudsy (bitbucket44_at_hotmail.com)
Date: 01/13/05
- Next message: Ryan Stewart: "Re: Can I use anonymous inner class to implement a interface?"
- Previous message: Bruce Sam: "Re: Can I use anonymous inner class to implement a interface?"
- In reply to: hilz: "Re: (cast) iteration not working???"
- Next in thread: Eric Sosman: "Re: (cast) iteration not working???"
- Reply: Eric Sosman: "Re: (cast) iteration not working???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 Jan 2005 23:01:33 -0500
hilz wrote:
<snip>
> but that is still not the same as "until"
> "until" keeps the control in the loop until the condition is met.
> "while" keeps the control in the loop while the condition is met
> so to get the "until" effect using a "while", you will have to reverse the
> "while" condition. A "do..while" construct does not do that.
Then use the shortcut for(;;until_condition){}. There are always
equivalents in most languages, Java included... ;-)
- Next message: Ryan Stewart: "Re: Can I use anonymous inner class to implement a interface?"
- Previous message: Bruce Sam: "Re: Can I use anonymous inner class to implement a interface?"
- In reply to: hilz: "Re: (cast) iteration not working???"
- Next in thread: Eric Sosman: "Re: (cast) iteration not working???"
- Reply: Eric Sosman: "Re: (cast) iteration not working???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|