📜  elif java 代码示例

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

代码示例1
int time = 22;
if (time < 10) {
  System.out.println("Good morning.");
} else if (time < 20) {
  System.out.println("Good day.");
} else {
  System.out.println("Good evening.");
}
// Outputs "Good evening."