And what array[index].length will return you? Don't you think, it'll return the array size of what you called array of array?
Type: Posts; User: Mr.777
And what array[index].length will return you? Don't you think, it'll return the array size of what you called array of array?
Paste the exception/errors message here.
result = new int[lb][lb];
lb = 2 and result is now result[2][2]. Why do you expect it, not to throw array out of bound exception?