Original Post
Hi guys. I was wondering if someone could help me with a problem I am having. I am trying to create a 3 dimensional array in Java and fill it right after I create it. I have done this with 2D arrays before with a format like this: I cant figure out how to add the third dimension though. I have searched the net and tons of Java tutorials and books but they all just cover one and two dimensional arrays. I appreciate any help I can get on this matter. Thanks so much!!! Josh a.k.a. CyberGeek
int array[][] = {
{0,0,0,0,0,0},
{2,4,6,8,10,12},
{14,16,18,20,22,24},
{26,28,30,32,34,36},
};