It means that you've exceeded the size of your array somewhere, probably in that for loop, but I'm too lazy to count all of your initializations to figure out which dimension was violated. Your loop expects 15 i elements, 22 j, and 2 k for the array[i][j][k]. So you should ensure that all of your initializations include at least 15 i elements (0 - 14), 22 j (0 - 21), and 2 k (0 - 1). That would be 15 x 22 x 2 = 660 elements. Phew!
I see your first initialization has 22 elements. Shouldn't that be 15? Did you swap the i and j dimensions? It's hard to visualize and work with a 3(or more)-dimensional array, so I appreciate the challenge you have to keep it all straight.
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Joined: Dec 14, 2009
Greg, Thanks for replying
well, the array was of the dimension on 15*22*2. Thus in the initialization part it has 15 rows and 22 columns. I tried swapping the i and j dimensions but the program is still showing the same error.