Java Programs(Using Scanner Class) | PART 1

Опубликовано: 02 Июль 2026
на канале: AKD Classes
59
5

#scanner #java

The Scanner class is used to get user input, and it is found in the java.util package.

To use the Scanner class, create an object of the class and use any of the available methods found in the Scanner class documentation.

This video shows some examples of java programs where the input has been taken from the user using scanner class methods.


0:00 Introduction
0:44 Find average of three numbers
4:23 Find area and perimeter of square
6:14 Calculate simple interest
7:15 average marks obtained by student
9:37 converting days into year, months and days