📅  最后修改于: 2022-03-11 14:52:18.884000             🧑  作者: Mango
//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");
}