Use foreach to iterate over a list
val fruits = List("banana", "orange", "strawberry", "apple", "pear")
fruits.foreach(fruit => println(fruit))
For simple operations you can just use an underscore instead of naming the argument:
val fruits = List("banana", "orange", "strawberry", "apple", "pear")
fruits.foreach(println(_))