What is the difference between contains and equals?

Both, Contains and Equals are using string comparison. Since your Key is of type string, Contains will check if the passed parameter is part of the key, whereas Equals compares the complete string for equality .

Sizin İçin Seçtik  What compiler is used for Java?

Leave a Reply

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