filmov
tv
Java Practice Examples - Module 2-4 Multiple If-Else If Blocks

Показать описание
In this series, we'll be using the free Visual Studio Code to develop and test our code samples.
In Java, as with other languages, there is a more efficient way to run code that is in a series of if statements. That is the if-else if block of code. This keeps you from evaluating future conditions within the block of code, is easily management to write and maintain, and keeps your logic simplified.
In this video we look at how to write these if - else if style blocks of code, including a final else statement that can be used as a catch all if none of the conditions are met.