Introduction to ScalaCommand line argumentsReading from the terminal

Reading from the terminal

You already noticed the functions print, println, and printf for printing to the terminal.

To read input from the terminal, there are a number of read-methods.

You can learn about them in my Scala documentation.

Introduction to ScalaCommand line argumentsReading from the terminal