If(...) - Two Equal Sides Are Considered As Not Equal
Possible Duplicate: How do I compare strings in Java? im new to android and this is my first post in StackOverflow.In short I face a very strange problem : in some methods I
Solution 1:
You shouldn't use ==
to compare Strings in Java. Use t1.toString().equals(t2.toString())
instead.
Solution 2:
never use ==
on String objects. Use t1.equals(t2)
instead.
Post a Comment for "If(...) - Two Equal Sides Are Considered As Not Equal"