Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2006/ia/paper-5/10/a/solution

Allocate a rectangular Java array:
java
boolean[][] board = new boolean[1000][1000];
Java initializes every new boolean array element to false, so all cells are initially dead without a filling loop. This allocates a top-level array of row references and a distinct boolean array for every row.

New to topics? Read the docs here!