Re: (cast) iteration not working???
From: hilz (no.w_at_y.com)
Date: 01/13/05
- Next message: hilz: "Re: Confusion with Eclipse"
- Previous message: Esmond Pitt: "Re: I want an event when program I'm connected with closes Socket"
- In reply to: Sudsy: "Re: (cast) iteration not working???"
- Next in thread: Sudsy: "Re: (cast) iteration not working???"
- Reply: Sudsy: "Re: (cast) iteration not working???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 Jan 2005 19:53:06 -0500
> <snip>
> > Yup. But you're using a "while" construct, not an "until" (which java
doesn't
> > have). <snip>
>
> But there's always the following construct:
>
> do {
> // something
> } while ( // condition );
>
> Same as in C.
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.
thanks
hilz
- Next message: hilz: "Re: Confusion with Eclipse"
- Previous message: Esmond Pitt: "Re: I want an event when program I'm connected with closes Socket"
- In reply to: Sudsy: "Re: (cast) iteration not working???"
- Next in thread: Sudsy: "Re: (cast) iteration not working???"
- Reply: Sudsy: "Re: (cast) iteration not working???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|