Novice Java Tutorial with Apache NetBeans 11.0: 25 Introduce the OR Logical Operator.

Опубликовано: 20 Февраль 2026
на канале: Bruce Lamb
33
1

This video breaks in to the || (OR) Logical operator with the intent on explaining more thoroughly in the next video. The OR operator in this example can accept a 'Y' or a 'y' character from the user.

To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/25_OR_Intro.php
Java Doc Reference: https://docs.oracle.com/javase/tutori...

Quick review of the code from the previous video. (0:17)

Run the previous program twice with a String literal "Y" then "y" to build up to next example. (0:50)

Introduce the OR conditional operator into the boolean expression within the if statement. (1:25)

Execute the new program and elaborate a little more on the OR operator. (2:16)