View Single Post
Old May 23rd, 2006, 5:21 AM   #12
xavier
Professional Programmer
 
xavier's Avatar
 
Join Date: Oct 2004
Location: .ro
Posts: 396
Rep Power: 5 xavier is on a distinguished road
Send a message via Yahoo to xavier
Well , it depends on how you set up your while. It all comes down to the condition you put in while(condition) {}.

I don't see why it wouldn't work with while.

You have in a previous example

while ( x < 26;)
{
System.out.print(correct[x]);
}
now, if you don't increase x, it will always be smaller than 26 . So next time:
while ( x < 26;)
{
System.out.print(correct[x]);
x++;
}
__________________
Don't take life too seriously, it's not permanent !
xavier is offline   Reply With Quote