> In anycase, what is the correct notation for indexing? > > x = new int[][](width, height) > > and x[height][width] or x[width][height]? It's x[width][height], but because indexing is 0-based, largest valid indexes are x[width-1][height-1].