Answers for "how to check if a character is equal in java"

1

check if char equals java

//Method 1
if (CHAR == VALUE) {
  System.out.println("CHAR matches with VALUE");
}

//Method 2
if (CHAR.equals(VALUE)) {
  System.out.println("CHAR matches with VALUE");
}
Posted by: Guest on September-26-2021

Code answers related to "how to check if a character is equal in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language