Prev Next

Java / Strings

How do I compare strings in Java?

== tests for reference equality to find whether they are the same object. equals() tests for value equality to find whether they are logically "equal".

More Related questions...

Show more question and Answers...


Comments & Discussions