Scanner Class in Java

This is pre-defined class provided by java language version 5 and later. This class is useful to input the different types of values. This scanner class does not work individually, but it contains which is used for standard input. It is provided under java.util package.