Use the equals() method when comparing the contents of objects, like Strings.