
-----------------------------------
SsJBebiGoku
Thu Oct 07, 2004 6:44 pm

Mutlidimensional Array question
-----------------------------------
Hi,

I'm writing a program to generate a random number of hands and everything...(another file calls the stuff and outputs it later), but i dont know how to get the length of a multidimensional array..i know for a regular array you use Array.getLength(x), but does anybody know how to do it for a multidimensional one? i'll put the piece of code that i'm trying to get it from..thanks a bunch


public void dealCards(int hand[][], int numCards)
	{
		int firstArray = Array.getLength(?);
		int secondArray = Array.getLength(?);
		
		System.out.println(firstArray + " " + secondArray);
		
		for (int j = 0; j