string1.equals(string2) is the way.
It returns true if string1 is equals to string2 in value. Else, it will return false.
equals reference
string1.equals(string2) is the way.
It returns true if string1 is equals to string2 in value. Else, it will return false.
equals reference