From the course: Scala Essential Training for Data Science

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Challenge Intro: Create arrays, vectors, and ranges

Challenge Intro: Create arrays, vectors, and ranges

From the course: Scala Essential Training for Data Science

Challenge Intro: Create arrays, vectors, and ranges

- [Instructor] Now it's time for another CoderPad exercise. In this exercise we're going to exclusively define arrays of integers with values such as 1, 2, 3, 4, 5. We're going to declare a vector of strings with values such as the words one, two, three, and then we're going to explicitly declare a range with a start and end and increment. Now to do that, we will complete the lines here, val arrayOfInt, val arrayOfStrings and val rng.

Contents