The document discusses the if-then and if-then-else control flow statements in Java. It provides examples of basic if statement syntax and usage, including checking for true/false conditions, using && and operators, and chained else if statements to check multiple conditions. The final examples demonstrate using if/else if/else blocks to check a test score or variable value and print the corresponding grade or output.
The document discusses the if-then and if-then-else control flow statements in Java. It provides examples of basic if statement syntax and usage, including checking for true/false conditions, using && and operators, and chained else if statements to check multiple conditions. The final examples demonstrate using if/else if/else blocks to check a test score or variable value and print the corresponding grade or output.