Sign in to FlowVella

Forgot password?
Sign in with Facebook

New? Create your account

Sign up for FlowVella

Sign up with Facebook

Already have an account? Sign in now


By registering you are agreeing to our
Terms of Service

Share This Flow

Loading Flow

loading...

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...

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);

Downloading Image /

loading...

Downloading Image /

loading...

Downloading Image /

loading...
  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10

Java variables

By Jasmien Sofie