So this is my code:
import scala.collection.mutable.MutableList
val list = MutableList[Any]()
val input = scala.io.StdIn.readLine("Please enter your list of values separated by a comma:").split(",")
val toList = for (e <- input if(!e.trim.isEmpty())) yield e.trim.toString
list += toList
println(list)
But when the "list" gets printed it doesn't show me the input seperated by commas, besides it prints the following:
MutableList([Ljava.lang.String;@d716361)
Why is that so?