Comparison of equals() and ==
When comparing strings , equals() compares content and ==
compares addresses. Therefore, never use ==
operators to test string equality.
When comparing strings , equals() compares content and ==
compares addresses. Therefore, never use ==
operators to test string equality.