Understand Java Switch Case in 8 minutes | Learn Java Programming in German - 23

Publicado em: 27 Janeiro 2022
no canal de: Jonas Keil
16,718
421

Switch Case allows you to test a variable for different values ​​(cases). In this video, I'll show you everything you need to know about Switch Case in Java!

0:00 Introduction
0:05 Structure of Switch Statements
1:58 Switch vs. if Statements
2:44 Switching a Variable
3:13 Cases & Indentation
4:09 Never forget "break"!
5:56 Switch Case with a Real Dice
6:29 The "default" Keyword
7:09 A Challenge for You

📚You might also be interested in:
Enums in Java:    • Enums in Java - Java Programmieren Lernen ...  
Random Generators in Java:    • Java Random Klasse in 5 min 🎲  - Java Prog...  
Method Basics Tutorial:    • Java Methoden Tutorial in 9 min - Java Pro...  

The syntax of switch is actually quite simple. A switch statement begins with the switch() keyword. You can place a variable of any type in these brackets. Now, in your switch statement, you can use the "case" keyword to check for the different values ​​of your variables.

🚀 Learn #Java in a playlist -    • Video  &list=PLO-P6W97sI0Q-o0oZy8NeUgi0s5WKK8IV

Switch Case statements can seem complicated at first... but I'm sure you'll get the hang of it! :) I highly recommend you follow along with the #tutorial and try the challenges! Then you'll truly internalize Switch Case in Java!
Let me know in the comments if this video helped you better understand Switch Case!

👾 Code from the tutorials: https://github.com/Jonas-Keil/learn-java
============
🔔 Subscribe so you won't miss any more videos: https://www.youtube.com/c/JonasKeil?s...
============
📢 Link to the Discord community:   / discord  
============
🎉 If you like my videos, support me on Patreon:   / jonaskeil  

▬👇🏻Important Links👇🏻 ▬▬▬▬
1. Java IDEA 💻 from the videos: https://www.jetbrains.com/de-de/idea/...
2. Links to my equipment 🛠: https://kit.co/JonasKeil/studio-setup
3. Music 🎶 from all tutorials: https://www.epidemicsound.com/referra...
4. Java books📚 that I can recommend: https://kit.co/JonasKeil/die-besten-j...

▬✨About this channel✨ ▬▬▬▬
Are you a student or school-age student who wants to learn the Java programming language but don't know where to start? Then this channel is the right place for you!

On this channel, you'll find a guide that will help you learn Java step by step as a Java beginner. I know it's not always easy, and I'll do my best to explain it as best as I can :) Have fun!!

Jonas Keil❤

#Programming #Java

PS: Some of the links in this description are affiliate links, from which I receive a commission :)


Nesta página do site você pode assistir ao vídeo on-line Understand Java Switch Case in 8 minutes | Learn Java Programming in German - 23 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Jonas Keil 27 Janeiro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 16,718 vezes e gostou 421 espectadores. Boa visualização!