Java Switch Statement - Branching Structures Example - Java Course - Appficial

preview_player
Показать описание
A switch statement is another way to represent multi-branch behavior, by using a series of case statements. The switch statement’s expression can only be an integer, char, or String. Don’t forget the break statement, or every case will execute until it either finds a break or the switch ends. The default case is like an else.

switch (expression)
{
case expression1:
break;
case expression2:
break;
default:
break;
}

Java if else Statements

Java Relational Operators

Java Multi-branch if-else-if Statement

Java Nested if-else Statements

Java Distinct If Statements

Java Logical Operators

Java Short Circuit Evaluation

Java Switch Statement

Java Precedence Rules for Logical and Relational Operators

Java Boolean Data Type

Java String Comparison Methods

String Access Methods

String Modifier Methods

The Conditional Expression

Floating-point Comparison

Character Comparison

Displaying Currency in Java

Variable Scope
Рекомендации по теме
Комментарии
Автор

thank you so much! im taking ap comp sci right now and this video really helped me :)

Redapplemillionjnnn
Автор

Please SUBSCRIBE! More programming videos coming soon! ✌️

Appficial
welcome to shbcf.ru