Hello, I've been wondering what the easiest way is to set the dimension of an array during runtime.
You can't write byte[][] a = new byte[size][size]; because the compiler will give an error. The only thing I've been able to think of is byte[][] a; a.length = size; for (int i; i < size; i++) { a[i].length = size; } But it's slower (and less convenient) than writing byte[][] a = new byte[9][9];