Why doesn't if statement preclude another if statement in Java?

前端 未结 0 1363
感情败类
感情败类 2020-12-29 01:14

I wrote a couple of if statements in Java. I wanted the first if statement to call a function called newGame() and not enter another if statement if true.

<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题