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)
In questa pagina del sito puoi guardare il video online Novice Java Tutorial with Apache NetBeans 11.0: 20 Another if-then statement della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Bruce Lamb 11 agosto 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 22 volte e gli è piaciuto 0 spettatori. Buona visione!