Answers for "check if a char and string are equal 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 "check if a char and string are equal java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language