The loop will not stop because of this statement. while ((x != 3) || (success < 2)) You are saying the loop should continue as long as one of the conditions is true. You need to use && while ((x != 3) && (success < 2));
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Jun 19, 2002
DOH! Ok - I guess studying all this stuff is messing with my mind. Thanks for the clarification.