Re: (cast) iteration not working???
From: Eric Sosman (eric.sosman_at_sun.com)
Date: 01/13/05
- Next message: Thomas Beer: "Sun App. Server, JDBC, JNDI"
- Previous message: Eric Sosman: "Re: Why does socket:read() take so long to determine broken connection?"
- 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: Thu, 13 Jan 2005 11:00:21 -0500
Sudsy wrote:
> 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... ;-)
That's an infinite loop, suitable for "until Hell
freezes."
-- Eric.Sosman@sun.com
- Next message: Thomas Beer: "Sun App. Server, JDBC, JNDI"
- Previous message: Eric Sosman: "Re: Why does socket:read() take so long to determine broken connection?"
- 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 ]