How to Compare Strings in Java Correctly?
How to Compare Strings in Java Correctly?, I know many of you are using == to compares two strings in Java.Well, the == is correct.In ==, reference equality will be matched.Means that, it is checking that, they are same objects or not. We have to use the .equals() for actually…
Read more