<<< System.out | Index | The Scanner class, cont >>> |
The Scanner object takes care of keyboard input from the console device.
The Scanner class comes from the java.util package and must be imported.
The constructor method is needed to create a Scanner object.
You can use any valid Java identifier to name your object.
<<< System.out | Index | The Scanner class, cont >>> |