Splitting Strings

In the following lesson, you will learn how to split strings in Scala.

We'll cover the following


Imagine you have a list of items separated by a comma. You want to print the list vertically, item-by-item to make it easier to read. In other words, you want the compiler to split the string into separate lines at the commas.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy