...

/

Ask the User

Ask the User

Read user input from the console using Scanner.

So far, you’ve printed and stored text. Now it’s time to get input from the user. In this lesson, you’ll use Scanner to read what someone types.

Goal

You’ll aim to:

  • Use Scanner to read input.

  • Capture text and numbers.

  • Build interactive programs. ...