The tutorial demonstrate the use of Scanner Class.
The tutorial demonstrate the use of Scanner Class.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;
|