Novice Java Tutorial with Apache NetBeans 11.0: 24 Interactive Program with If statement

Опубликовано: 09 Август 2026
на канале: Bruce Lamb
30
0

Begin to control the flow of the program using an if statement based on the program users input.
To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/24_Interactive_If.php

Explain what will happen with partial example line by line. (0:00)
Begin typing the rest of the program and explaining the boolean expression within the if statement. (0:32)
Run program and type "Y" as the user input string. Boolean expression evaluates to true and prints "Proceed" to the output box. (1:25)
Run program and type "N" as the user input string. Boolean expression evaluates to false and skips the if statement block of code. (1:46)
Run program and type "K" as the user input string. Boolean expression evaluates to false and skips the if statement block of code. (2:12)
Run program and type "Yes" as the user input string. Boolean expression evaluates to true and prints "Proceed" to the output box. (2:50)
Run program and type "y" as the user input string. Boolean expression evaluates to false and skips the if statement block of code. (3:24)