Scanner in Java Tutorial - Learn Java Programming German - 07

Published: 25 October 2021
on channel: Jonas Keil
50,874
1.1k

The Scanner class allows you to read user input in Java. This tutorial will teach you everything you need to know.

0:00 Introduction
0:10 Importing the Scanner class
0:48 Creating a Scanner class object
1:24 Reading input (string)
2:33 Reading input (integer)
3:38 Avoiding exceptions
4:19 Summary
4:44 Learning Java programming

📚You might also be interested in:
While loop in Java:    • Java WHILE Schleife in 10 min - Java Progr...  
Building a random number generator:    • Java Random Klasse in 5 min 🎲  - Java Prog...  

The Scanner class is a predefined class in Java, meaning it provides certain functions that we can use to read user input. To do this, we need to ensure three things: 1. We've imported the Scanner class, 2. We've created an object, and 3. We're using the correct "next" method in the code according to the data type we want to read. If you follow these three steps, you can easily read user input in Java.

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

The Scanner class may seem complicated at first... but you'll definitely understand it anyway! :) If you follow along with me in addition to the #tutorial, congratulations! Then you'll truly master the Scanner class in Java!

I hope you enjoy this Scanner tutorial! Let me know in the comments if this video helped you understand Scanner better!

👾 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 :)


On this page of the site you can watch the video online Scanner in Java Tutorial - Learn Java Programming German - 07 with a duration of hours minute second in good quality, which was uploaded by the user Jonas Keil 25 October 2021, share the link with friends and acquaintances, this video has already been watched 50,874 times on youtube and it was liked by 1.1 thousand viewers. Enjoy your viewing!