I want a two-dimensional array of ArrayBuffer
Something like this:
var myRowOfStrings = new ArrayBuffer[String]
val myArrayOfRows = new ArrayBuffer[ArrayBuffer] // To store many ArrayBuffer[String]
But the Scala compiler doesn't like the second declaration:
scala> val myArrayOfRows = new ArrayBuffer[ArrayBuffer]
<console>:8: error: class ArrayBuffer takes type parameters
val myArrayOfRows = new ArrayBuffer[ArrayBuffer]
^
Have I got the syntax wrong?
Or is an ArrayBuffer of ArrayBuffer not possible?