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)
Auf dieser Seite können Sie das Online-Video Novice Java Tutorial with Apache NetBeans 11.0: 20 Another if-then statement mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Bruce Lamb 11 August 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 22 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!