Java compare two strings

Let’s learn how do you compare two strings in java? Java compare two strings In java, String is immutable. Meaning, once created String object can’t be changed, they are constant. Below are few ways to compare 2 strings in java. NOTE: Do not use == operator for comparing Strings Because basically equal() method and ==…

Read More Java compare two strings