Sign up for Free !!
World's first open source developer community with
Ticketing System
How to compare two strings in equal value??
string1.equals(string2) is the way.
string1.equals(string2)
It returns true if string1 is equals to string2 in value. Else, it will return false.
true
string1
string2
false
Please Login/Register to write your answer !!!
string1.equals(string2)
is the way.It returns
true
ifstring1
is equals tostring2
in value. Else, it will returnfalse
.