Sign up for FlowVella
Sign up with FacebookAlready have an account? Sign in now
By registering you are agreeing to our
Terms of Service
Loading Flow
java.util.scanner
To be able to use user input from the console, we need to pass the input to a Scanner object.
The Scanner object will break down the input into tokens for us.
Import the Scanner class
import java.util.scanner;
import java.util.*;
Place this at the very top of the program project.
Scanner Class
MY VIDEO TITLE
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi auctor nibh vitae est faucibus consectetur.
Initialising the new Scanner object
Scanner input = new Scanner(System.in);