How do you compare characters in two strings?

You can compare two Strings in Java using the compareTo() method, equals() method or == operator . The compareTo() method compares two strings. The comparison is based on the Unicode value of each character in the strings.

Sizin İçin Seçtik  Başka hesaba havale yaparken para kesilir mi?

Leave a Reply

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