How do you check if two strings are equal in Java?
You can use the .equals() method to compare two strings. This method returns true if the strings are equal and false otherwise.
Great! You correctly used .equals() to check string equality.
What would happen if you compared two strings using the '==' operator instead of .equals()?