There are several ways to construct an immutable list in Scala (see contrived example code below). You can use a mutable ListBuffer, create a var list and modif
var
And for simple cases:
val list = List(1,2,3)
:)