Scanner was introduced in jdk 1.5. This class help in taking the input from the console. Here in this sample program it will take one word input from the console and display it.
import java.util.Scanner;
|

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.