Arrays in Scala and its tricky behaviour ;-)

The row bellow shows parametrizing of an array with a String type in Scala.

scala > val greetStrings = new Array[String](3)

If I have to be honest it’s very unclear what is the meaning of “parametrizing of an array” and why is not used the word “definition”  ;-). Every time when I read for Scala I see very strange concepts for me but I like Scala because it makes me breaking my concepts for the programming languages!

Leave a Comment

Your email address will not be published. Required fields are marked *