How can I determin how many columns there are in a Object[][]
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   maarten_storm
Posted On:   Friday, September 14, 2001 07:27 AM

How can I determin how many columns there are in a Object[][]? Every row has the same number off columns



I know how to determin the number of rows


			

public int getRowCount(String[][] data)
{
int rv=0;
if(data!=null)
{
rv=data.length;
}
return rv;
}

Re: How can I determin how many columns there are in a Object[][]

Posted By:   AlessandroA_Garbagnati  
Posted On:   Friday, September 14, 2001 08:31 AM

Hi,

Have you tried:


int columns = data[0].length;

About | Sitemap | Contact