Novice Java Tutorial with Apache NetBeans 11.0: 20 Another if-then statement

Publié le: 11 août 2019
sur la chaîne: Bruce Lamb
22
0

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)


Sur cette page du site, vous pouvez voir la vidéo en ligne Novice Java Tutorial with Apache NetBeans 11.0: 20 Another if-then statement durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Bruce Lamb 11 août 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 22 fois et il a aimé 0 téléspectateurs. Bon visionnage!