📜  如果不是 java 代码示例

📅  最后修改于: 2022-03-11 14:52:44.735000             🧑  作者: Mango

代码示例1
boolean state = false;

if (state != true) { //Boolean is false.
  System.out.println("No");
} else { //Boolean is true
  System.out.println("Yes");
}