java char equals

Java Character equals() Example

Like Math class comes with many methods to do simple arithmetic calculations, java.lang.Character class comes with many methods to manipulate characters like from lowercase to uppercase and to find what type of Character is like uppercase letter or a digit etc. Character class is a boon to Java Programmer to…

Char Comparison Java

For comparing two characters logical equals (==) operator can be used. Alternatively, the chars can be passed to Character constructor and compared with equals() method. The following program illustrates. Program on Char Comparison Java

Output screenshot on Char Comparison Java Two characters can be compared using logical equals (==)…