Is there an opportunity to create two dimensional Arrays with different lengths in the second dimension? For example like this:
[true] [true] [true]
[true]
Yes, arrays in a 2D array don't have the have same size. E.g.:
boolean[][] twoDimensionalArray = new boolean[3][]; twoDimensionalArray[0] = new boolean[]{true, true, true}; twoDimensionalArray[1] = new boolean[]{true}; twoDimensionalArray[2] = new boolean[]{true, true, true, true, true};