You can compare two strings using either equals() method or compareTo() method . Where, The equals() method compares this string to the specified object.
You can compare two strings using either equals() method or compareTo() method . Where, The equals() method compares this string to the specified object.