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)