O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Users’ Input

We’ll build an application that takes a list of stock ticker symbols along with the units of stock users hold and provides to them the total value of their investments as of the current date. This involves several things: getting users’ input, reading files, parsing data, writing to files, fetching data from the web, and displaying information to users.

We’re going to first develop the different parts of the application separately to get a good grasp of the parts individually. Then we’ll put them together to create the application. Let’s get started.

As a first step, we want to know the ticker symbols and units of each stock for which the application should find the values. Scala’s StdIn class can help to get input from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required