[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: array question



Thanks all,
Bill

> -----Original Message-----
> From: Frank Merenda [mailto:fmerenda@atwork.com]
> Sent: Tuesday, November 20, 2001 3:17 PM
> To: Bill Woodson; List AJUG
> Subject: RE: array question
> 
> 
> this should do the trick:
> 
> int[][] testArray = new int[20][100];
> 
> System.out.println( "size of array2 is " + testArray[1].length );
> 
> Hope that helps!
> 
> Thanks,
> Frank Merenda
> Senior Software Engineer
> AtWork Technologies, Inc.
> fmerenda@atwork.com 
> 
> > -----Original Message-----
> > From: Bill Woodson [mailto:radman@usefulware.com]
> > Sent: Tuesday, November 20, 2001 3:04 PM
> > To: List AJUG
> > Subject: array question
> > 
> > 
> > Hi All,
> > 
> > How do get the length of dimensions of a multi dimensional 
> > array that are
> > not the first dimension? In other words I want to get the 
> > second dimension
> > length of "int [][] test=new int[200][100];" which in this 
> > case is 100.
> > 
> > Thanks,
> > Bill
> > 
> > 
>