Originally posted by Campbell Ritchie:
The answer to the question you meant to ask and didn't is (if I remember correctly) 255 in Java.
??
Perhaps you could tell us what the quetstion he meant to ask and didn't is, because I'm not sure what you're trying to answer here. I'm not aware of any size restriction that limits the number of elements in an array to 255, nor can I figure out any reason why you could not have a tree of greater depth than 255 made with arrays. Did I miss something here?
My answer to the original question would be this: You can have as many dimensions in an array as you like, and as many indices in each dimension as you would like, provided your system has the memory available for it.
- Adam