View Single Post
Old Apr 26th, 2005, 3:33 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
 

while (back1.equals ("Yes") == true || back1.equals ("yes") == true);

if it is this while loop then it should be

while (back1.equals ("Yes") || back1.equals ("yes") );

or

while (back1.equalsIgnoreCase ("Yes"));

you do not need the "== yes" part as the above evaluation will be true and go into the loop or false and not.
Berto is offline   Reply With Quote