Using Equals() The equals() method is used to check whether two char objects are equal or not. It returns true if both are equal else returns false .
How do you check the two Character is equal or not?
Using Equals() The equals() method is used to check whether two char objects are equal or not. It returns true if both are equal else returns false .