Quick links
Write a java program to perform basic input using Scanner class. In this article I will explain how to input all basic data types using Scanner class in Java. We will learn how to use java.util.Scanner
class to input data from user.
Example
Input
Input
Enter charater value: c Enter integer value: 10
Output
You entered charater : c You entered integer: 10