Scanner Class in Java | User Input in Java | Java Complete Course Lesson 19

Published: 12 July 2026
on channel: CodeDiaries
5
1

☕ Java Complete Course | Lesson 19

Welcome to Lesson 19 of the Java Complete Course!

In this video, you'll learn how to take user input in Java using the Scanner Class with simple explanations and practical coding examples.

📚 Topics Covered:
✅ Why do we need Scanner Class?
✅ What is Scanner Class?
✅ What is a Package?
✅ import java.util.Scanner
✅ Scanner Object Creation
✅ new Scanner(System.in)
✅ nextInt()
✅ next()
✅ Taking User Input in Java
✅ Practical Coding Examples

💻 Programs Covered:
✔ Input Integer
✔ Input Two Numbers & Find Sum
✔ Input Name Using Scanner

📝 Homework

Question 1:
Write a program to input your Name and Age, then display them.

Question 2:
Write a program to input Length and Breadth, then calculate the area of a rectangle.

📚 Java Complete Course Playlist:
👉    • Java Complete Course in Hindi | Beginner t...  

📌 Previous Lecture:
Method Overloading in Java

📌 Next Lecture:
next() vs nextLine() in Java | Scanner Class Methods

👍 If you found this video helpful:
❤️ Like the video
💬 Comment "Done" after completing the homework
📤 Share it with your friends
🔔 Subscribe to Code Diaries for more Java tutorials.

#java
#javaprogramming
#scannerclass
#userinput
#javacourse
#javaforbeginners
#coding
#learnjava
#programming
#codediaries


On this page of the site you can watch the video online Scanner Class in Java | User Input in Java | Java Complete Course Lesson 19 with a duration of hours minute second in good quality, which was uploaded by the user CodeDiaries 12 July 2026, share the link with friends and acquaintances, this video has already been watched 5 times on youtube and it was liked by 1 viewers. Enjoy your viewing!