Answers for "check char equals java"

4

char equals java

just use == and !=
Posted by: Guest on October-05-2021
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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language