I'm trying to initialize this data structure:

```
  var array:ArrayBuffer[Map[Int,Int]] = ArrayBuffer()

  for ( i <- 0 to 10) {
    array(i) = Map()
  }

```

but I'm getting 

```
Exception in thread "main" java.lang.IndexOutOfBoundsException: 0

```

What's wrong?