> while (int i = 0; some check ; i++ ){
>
>             Your code for checking
>
> }
>

It's syntax for the FOR loop, not WHILE...

To say it in While it should be like this:

int i = 0;
while (some check)
{
         //This is not where "Your code for checking" but the statement
which your loop will do if "some check" is returned True
         i++;
}

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to