How do you know if two strings are the same?

The equals() method compares two strings, and returns true if the strings are equal, and false if not. Tip: Use the compareTo() method to compare two strings lexicographically.

Sizin İçin Seçtik  Is there a Contains function in Java?

Leave a Reply

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