Understanding the Syntax and Benefits of One-Line If Statements in Java