Java Switch #1 - Java Switch Statement Basics

Опубликовано: 02 Октябрь 2024
на канале: Jakob Jenkov
7,386
44

The Java Switch statement enables you to select a set of Java statements to execute depending on the value of a variable. You can switch on variables of data types byte, Byte, short, Short, int, char, Character, int, Integer, String and enum.

Here is a textual version of this Java switch tutorial:

http://tutorials.jenkov.com/java/swit...

Here is the second video in this Java switch tutorial series:

   • Java Switch #2 - Java Switch Expressi...