How do you check if a char is equal to another char in Java?

equals() is a method of all Java Objects. But char is not an Object type in Java, it is a primitive type, it does not have any method or properties, so to check equality they can just use the == equals operator .1 Eyl 2018

Sizin İçin Seçtik  What is the string in Java?

Leave a Reply

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

How do you check if a char is equal to another char in Java?

equals() is a method of all Java Objects. But char is not an Object type in Java, it is a primitive type, it does not have any method or properties, so to check equality they can just use the == equals operator .1 Eyl 2018

Sizin İçin Seçtik  How do you check if a character is equal to a String in Java?

Leave a Reply

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