Demonstrates more basic examples using the if statements and comparing variable values.
To copy and paste code visit: www.carbon12.life/Tutorials/Novice_Java/20_If2.php
ASCII Table reference link: www.asciitable.com/
Execute example that compares a char variable to a character literal 'A'. The boolean expression in the if statement evaluates to true and executes the println statement within the if curly braces. (0:35)
Alter the variable value from "A' to 'C". The boolean expression evaluates to false and therefor skips the println statement within the if curly braces. (0:46)
Begin referencing to the ASCII table to set up next example. (1:00)
Alter the boolean expression so that it compares the value of the char variable to the integer literal 65. (1:21)
On this page of the site you can watch the video online Novice Java Tutorial with Apache NetBeans 11.0: 20 Another if-then statement with a duration of hours minute second in good quality, which was uploaded by the user Bruce Lamb 11 August 2019, share the link with friends and acquaintances, this video has already been watched 22 times on youtube and it was liked by 0 viewers. Enjoy your viewing!