View Single Post
  #2 (permalink)  
Old 02-10-2008, 08:54 PM
hey hey is offline
Member
 
Join Date: Dec 2007
Posts: 21
hey is on a distinguished road
Quote:
Originally Posted by Cero.Uno View Post
I need the opposite method to equals.


Code:
while("".equals(userChoice)==false);
added: equals is the right thing to use, while comparing strings, when you do this ==,!= you compare addresses of the strings, not theactual strings (remember String is an object)

Last edited by hey : 02-10-2008 at 09:03 PM.
Reply With Quote