Should you use == to compare strings?

You should use string equals to compare two strings for equality, not operator == which just compares the references .

Sizin İçin Seçtik  Can you use == for string in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *