How to compare two equal value strings, what is the best method?

Submitted 3 years, 5 months ago
Ticket #297
Views 226
Language/Framework Java
Priority Low
Status Closed

How to compare two strings in equal value??

Submitted on Nov 16, 20
add a comment

1 Answer

Verified

string1.equals(string2) is the way.

It returns true if string1 is equals to string2 in value. Else, it will return false.

Submitted 3 years, 5 months ago


Latest Blogs