Originally posted by Ken Blair:
[ October 17, 2005: Message edited by: Ken Blair ]
I agree that your last example is bad, but it is entirely predictable if you understand how == works with String objects. In this case, the condition of the if statement evaluates to true because you are using String literals here. If you want to know more,
you should google for "String Constant Pool" or something along those lines.
Layne