Originally posted by Steve Dyke: . I just thought this was a built in Java method to use for comparisons.
It is -- every class has an equals() -- but you have to be using it correctly. Here, if "getUserType()" returns String, then this is OK code, but if it returns any other class, then that's the problem right there. What class does it return?