Hallo.
Ich habe folgendes Problem, aber leider keine Lösung im Internet gefunden. Kennt wer eine Lösung?

...

n = 3;
Arrays[][] resultArray = new Arrays[n][n];

Boolean[][] helpArray = new Boolean[n][n];

... (Da wird mit dem helpArray was gemacht)

Variante 1: (ERROR: getThreatenedFields)

int rowCount = 0;

for (Arrays[] row1 : resultArray)

{   if(rowCount==j)

{Arrays.fill(row1, i, i+1, helpArray);}

rowCount++; }

Variante2: (ERROR: Can not convert Boolean[][] to Arrays)

resultArray[i][j] = helpArray;

Leider funktionieren beide Varianten nicht (i und j natürlich bekannt).