Java Programming: Lesson 9 - Boolean Variables

Pubblicato il: 10 agosto 2021
sul canale di: youmils03
35
0

PLEASE SUBSCRIBE!!!

In the previous video (   • Java Programming: Lesson 8 - Boolean ...  ), we introduced the concept of a boolean expression which always evaluates to either true or false. Here, we store boolean expressions in variables and then change those variables along the execution of the code.

boolean s = "saturday".indexOf( "t" ) == 3; //assigns s to a false boolean
System.out.println( !s ); //true

1:09 NEW: Intro to Boolean Variables
4:11 NEW: Redefining a Boolean Variable
5:35 NEW: Double Negation of a Boolean
6:30 More Examples

An equivalent Python lesson is provided here:    • Python Programming: Lesson 7 - Boolea...  

Ready for if, elseif, and else blocks? Check out the next video:    • Java Programming: Lesson 10 - if bloc...  

Thanks for watching, and PLEASE SUBSCRIBE!!!


In questa pagina del sito puoi guardare il video online Java Programming: Lesson 9 - Boolean Variables della durata di ore minuti seconda in buona qualità , che l'utente ha caricato youmils03 10 agosto 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 35 volte e gli è piaciuto 0 spettatori. Buona visione!