For Strings, you might also want to check out the equalsIgnoreCase() function.
Type: Posts; User: KevinWorkman
For Strings, you might also want to check out the equalsIgnoreCase() function.
Don't use == to compare Strings. Use the equals() method instead. The == operator determines whether two Objects are the same instance, the equals() method checks for semantic equality.