Your question wasn't specific. It depends also if you are talking about arrays of primitives or of objects. I was thinking of the latter, where each "row" can have a different length and must be initialized separately..
- int[][] a = new int[10][20];
- a[1][2] = 55;
- println(a[3].length);
- String[][] sa = new String[5][];
- sa[0] = new String[3];
- sa[1] = new String[5];
- // sa[2] is null
- sa[3] = new String[7];
- sa[4] = new String[11];
- sa[1][2] = "Foo";
- println(sa[1]);
Note that instead of using multidimensional arrays, we often prefer to use a simple array and manage ourself the layout of data. See for example pixels[] which is a single dimension array managing data in two dimensions (sketch's surface).