In K & B SCJP 6, solution I came across a statement "Multidimensional arrays' dimension can be inconsistent". Does it mean that the individual arrays of an array of arrays can have different dimensions? The following is the program:
Does the statement refer to the fact that dd has arrays with 3 and 4 elements?
Yes that is correct. The size of an int[][] doesn't have to be a square. Example
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.