Can you use equals in Java?

Java String equals() Method 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  Which data type Cannot be used in switch Java?

Leave a Reply

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