int[][] arr = new int[x][y];
A two dimensional array is essentially an array of arrays. You could think of them as rows and columns, but they're really showing this:
arr = {{0, 1, 2}, {3, 4, 5}, {6, 7, 8}};
Which you can think of as:
0 1 2
3 4 5
6 7 8