Re: (cast) iteration not working???

From: Eric Sosman (eric.sosman_at_sun.com)
Date: 01/13/05


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