java - Why does my code print both if and else statement? Rather it ...

java - Why does my code print both if and else statement? Rather it ...

More to explore

Based on this image's title: “java - Why does my code print both if and else statement? Rather it ...