Beginning Java Tutorial: 22 Interactive program demonstrating If statements and logical operators

Опубликовано: 15 Июль 2019
на канале: Bruce Lamb
31
0

Continuing from the logical operator video, a couple of examples and demonstrations are given utilizing the && (AND) and || (OR) Logical Operators.

Here is the pre-pasted code that goes into the main function.
PRE-PASTED CODE:
Scanner s=new Scanner(System.in);
System.out.println("Type a number then press Enter");
double x=s.nextDouble();

Pre-pasted code explanation. (0:18)

NOTE: Youtube does not allow me to type in the if statement examples because it uses unauthorized symbols)

Begin typing if statement example utilizing the && (AND) operator. (1:07)

Finish typing if statement example. (1:40)

Execute the program and explain each line of code. (1:52)

Type in 7 for x example during this program execution. (2:08)

Alter the example by adding a second if statement utilizing the || (OR) operator. (2:54)

Execute the program and explain the new altered code. (3:18)

Type in 3 for x example during this program execution. (3:31)

Trace through the example again with 3 for x. (3:40)

Execute the program again and use type 6 for x. Also retrace the if statements with 6 for x. (4:49)


На этой странице сайта вы можете посмотреть видео онлайн Beginning Java Tutorial: 22 Interactive program demonstrating If statements and logical operators длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Bruce Lamb 15 Июль 2019, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 31 раз и оно понравилось 0 зрителям. Приятного просмотра!