How can we compare two strings give an example?

str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.

Sizin İçin Seçtik  How do I begin learning Java?

Leave a Reply

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

How can we compare two strings give an example?

str1. equals(str2); Here str1 and str2 both are the strings which are to be compared.

Sizin İçin Seçtik  What does equals () mean in Java?

Leave a Reply

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